<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItemVideoOutput/pixelBufferAndDisplayTime(forItemTime:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So23AVPlayerItemVideoOutputC12AVFoundationE25pixelBufferAndDisplayTime03forbJ004CoreC0015CVReadOnlyPixelG0CSg0fG0_So6CMTimea04itemj3ForI0tAL_tF"
  },
  "title" : "pixelBufferAndDisplayTime(forItemTime:)"
}
-->

# pixelBufferAndDisplayTime(forItemTime:)

Retrieves an image that is appropriate for display at the specified item time, and marks the image as acquired

```
func pixelBufferAndDisplayTime(forItemTime itemTime: CMTime) -> (pixelBuffer: CVReadOnlyPixelBuffer?, itemTimeForDisplay: CMTime)
```

## Return Value

A tuple containing the image to be displayed and a CMTime representing the true display deadline for the pixel buffer

## Discussion

- itemTime: A CMTime that expresses a desired item time

Typically you would call this method in response to a CADisplayLink delegate invocation and if hasNewPixelBuffer(forItemTime:) also returns true.

The buffer retrieved from pixelBufferAndDisplayTime(forItemTime:) may itself be nil. A nil pixel buffer communicates that nothing should be displayed for the supplied item time.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)