outputProviderWithRandomAccess(for:)
Attaches the output to the reader and returns a tuple with an output provider for reading sample buffers, and an associated random access controller.
Declaration
func outputProviderWithRandomAccess(for output: AVAssetReaderOutput) -> sending (AVAssetReaderOutput.Provider<CMReadySampleBuffer<CMSampleBuffer.DynamicContent>>, AVAssetReaderOutput.RandomAccessController)Parameters
- output:
The output to be attached to the reader.
Return Value
A tuple with an output provider for reading sample buffers, and an associated random access controller.