Initializes an asset reader to wrap a specific track, with optional output settings.
- iOS 4.1+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
The track from which the reader should source sample buffers.
A dictionary of output settings to be used for sample output. Pass
nilto receive samples as stored in the track.
You use keys from one of AVAudioSettings.h, Video_Settings, or
CVPixel, depending on the media type and the output format required.
A value of
nilconfigures the output to vend samples in their original format as stored by the specified track.
Initialization fails if the output settings cannot be used with the specified track.
An asset reader wrapping
track, using the setting defined by
nil if initialization fails.