<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So27AVSampleBufferVideoRendererC12AVFoundationE8ReceiverC"
  },
  "title" : "AVSampleBufferVideoRenderer.Receiver"
}
-->

# AVSampleBufferVideoRenderer.Receiver

```
class Receiver
```

## Topics

### Enqueuing sample buffers

[`func enqueue(CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) async throws -> AVSampleBufferVideoRenderer.Receiver.EnqueueResult`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/enqueue(_:))

Suspends until the receiver is ready for more media data, then enqueues a sample buffer in order to render its contents.

[`func enqueueImmediately(CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) -> AVSampleBufferVideoRenderer.Receiver.EnqueueResult`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/enqueueImmediately(_:))

Enqueues a sample buffer in order to render its contents, without waiting for the renderer to become ready for more media data.

[`enum EnqueueResult`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/EnqueueResult)

A value indicating the result of a call to `enqueue(_:)` or `enqueueImmediately(_:)`.

### Flushing the receiver

[`func flush()`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/flush())

Instructs the receiver to discard pending enqueued sample buffers.

[`func flush(removingDisplayedImage: Bool) async`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/flush(removingDisplayedImage:))

Instructs the receiver to discard pending enqueued sample buffers and call the provided block when complete. This method suspends until the flush is complete.

### Observing rendering events

[`var renderingEventsAfterFinishedEnqueuing: some Sendable & AsyncSequence<AVSampleBufferVideoRenderer.Receiver.RenderingEvent, Never>`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/renderingEventsAfterFinishedEnqueuing)

A sequence of events that may occur when rendering after enqueuing samples has finished.

[`enum RenderingEvent`](/documentation/AVFoundation/AVSampleBufferVideoRenderer/Receiver/RenderingEvent)

Events that might require intervention after there are no more samples to enqueue, but before rendering has finished.



---

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)