---
title: "hasNewPixelBuffer(forItemTime:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritemvideooutput/hasnewpixelbuffer(foritemtime:)"
---

# hasNewPixelBuffer(forItemTime:)

Returns a Boolean value that indicates whether video output is available for the specified item time.

## Declaration

```swift
func hasNewPixelBuffer(forItemTime itemTime: CMTime) -> Bool
```

## Parameters

- `itemTime`: The item time to query. The time value is relative to the doc://com.apple.avfoundation/documentation/AVFoundation/AVPlayerItem object with which the receiver is associated.

## Return Value

Return Value true if there is available video output that has not been previously acquired or false if there is not.

## Discussion

Discussion This method returns true if the video data at the specified time has not yet been acquired or is different from the video that was acquired previously. If you require multiple objects to acquire video output from the same AVPlayerItem object, you should create separate AVPlayerItemVideoOutput objects for each.

## See Also

### Getting pixel buffer data

- [copyPixelBuffer(forItemTime:itemTimeForDisplay:)](avfoundation/avplayeritemvideooutput/copypixelbuffer(foritemtime:itemtimefordisplay:).md)
- [pixelBufferAndDisplayTime(forItemTime:)](avfoundation/avplayeritemvideooutput/pixelbufferanddisplaytime(foritemtime:).md)
