Provides the movie tracks of the specified media characteristic associated with an asset.
SDKs
- iOS 13.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- watchOS 6.0+
Framework
- AVFoundation
Declaration
- (NSArray<AVMovie Track *> *)tracksWithMediaCharacteristic:(AVMedia Characteristic)mediaCharacteristic;
Parameters
mediaCharacteristic
The media characteristic used to filter the asset.
Return Value
An array of AVMovie
objects that contains tracks with the specified media characteristic. Returns an empty array if there are no tracks matching the specified media characteristic.