<!--
{
  "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/enqueue(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So27AVSampleBufferVideoRendererC12AVFoundationE8ReceiverC7enqueueyAE13EnqueueResultO9CoreMedia013CMReadySampleB0VySo08CMSampleB3RefaAIE14DynamicContentOGYaKF"
  },
  "title" : "enqueue(_:)"
}
-->

# enqueue(_:)

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

```
nonisolated(nonsending) func enqueue(_ sampleBuffer: CMReadySampleBuffer<CMSampleBuffer.DynamicContent>) async throws -> AVSampleBufferVideoRenderer.Receiver.EnqueueResult
```

## Parameters

`sampleBuffer`

The sample buffer to enqueue.

## Return Value

The result of the enqueue operation.

## Discussion> Throws: `CancellationError` if the Task was cancelled.

---

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)