A Boolean value that indicates the readiness of the layer to accept more sample buffers.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 10.2+
AVSample keeps track of the occupancy levels of its internal queues for the benefit of clients that enqueue sample buffers from non-real-time sources — that is, clients that can supply sample buffers faster than they are consumed and need to decide when to hold back buffers.
Clients enqueueing sample buffers from non-real-time sources may hold off from generating or obtaining more sample buffers to enqueue when the value of
To help with control of the non-real-time supply of sample buffers, such clients should use
request in order to specify a block that the layer should invoke whenever it’s ready for sample buffers to be appended.
The value of
ready will often change from
YES asynchronously, as previously supplied sample buffers are decoded and displayed.