outputCaptionProviderWithRandomAccess(for:validationDelegate:)
Attaches the output to the reader and returns a tuple with an output provider for reading caption groups, and an associated random access controller.
Declaration
func outputCaptionProviderWithRandomAccess(for output: AVAssetReaderTrackOutput, validationDelegate: (any AVAssetReaderCaptionValidationHandling)? = nil) -> sending (AVAssetReaderOutput.Provider<AVCaptionGroup>, AVAssetReaderOutput.RandomAccessController)Parameters
- output:
The output to be attached to the reader.
Return Value
A tuple with an output provider for reading caption groups, and an associated random access controller.