Instructs the target to invoke a client-supplied block repeatedly, at its convenience, in order to gather sample buffers for display.
- iOS 8.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 10.2+
The dispatch queue.
The block that provides media data.
The block is expected to call the
enqueue(_:) in order to provide media data for decompression (if necessary) and rendering while the
is property remains
true, or until it can provide no additional media. When the layer has decoded enough media data that it is ready for additional media data, it will invoke the block again.
By allowing the display layer to determine when to invoke the block, the implementation of incremental I/O operations is simplified when supplying synchronized media data during rendering.
If this function is called multiple times, only the last call is effective.
You invoke the
stop method to cancel this request.
Each call to
request must be balanced with a corresponding call to
Releasing the receiver instance without a call to
stop will result in undefined behavior.