<!--
{
  "availability" : [
    "iOS: 11.0.0 - 27.0.0",
    "iPadOS: 11.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "macOS: 10.13.0 - 27.0.0",
    "tvOS: 11.0.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 4.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVQueuedSampleBufferRendering",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "c:objc(pl)AVQueuedSampleBufferRendering"
  },
  "title" : "AVQueuedSampleBufferRendering"
}
-->

# AVQueuedSampleBufferRendering

Methods you can implement to enqueue sample buffers for presentation.

```
protocol AVQueuedSampleBufferRendering : NSObjectProtocol
```

## Overview

[`AVSampleBufferDisplayLayer`](/documentation/AVFoundation/AVSampleBufferDisplayLayer) and [`AVSampleBufferAudioRenderer`](/documentation/AVFoundation/AVSampleBufferAudioRenderer) conform to this protocol. When used in conjunction with an [`AVSampleBufferRenderSynchronizer`](/documentation/AVFoundation/AVSampleBufferRenderSynchronizer), an object conforming to `AVQueuedSampleBufferRendering` can only be attached to a single synchronizer.

## Topics

### Requesting media

[`isReadyForMoreMediaData`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/isReadyForMoreMediaData)

A Boolean value that indicates whether the receiver is able to accept more sample buffers.

[`enqueue(_:)`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/enqueue(_:))

Sends a sample buffer to the queue for rendering.

[`requestMediaDataWhenReady(on:using:)`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/requestMediaDataWhenReady(on:using:))

Tells the target to invoke a client-supplied block in order to gather sample buffers for playback.

[`stopRequestingMediaData()`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/stopRequestingMediaData())

Cancels any current [`requestMediaDataWhenReady(on:using:)`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/requestMediaDataWhenReady(on:using:)) call.

### Determining playback readiness

[`hasSufficientMediaDataForReliablePlaybackStart`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/hasSufficientMediaDataForReliablePlaybackStart)

A Boolean value that indicates whether the enqued media meets the required preroll level for reliable playback.

### Clearing queued sample buffers

[`flush()`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/flush())

Discards all pending enqueued sample buffers.

### Indentifying the timebase

[`timebase`](/documentation/AVFoundation/AVQueuedSampleBufferRendering/timebase)

The timebase for a renderer.



---

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)