Instance Method

tracksWithMediaCharacteristic:

Provides the movie tracks of the specified media characteristic associated with an asset.

Declaration

- (NSArray<AVMovieTrack *> *)tracksWithMediaCharacteristic:(AVMediaCharacteristic)mediaCharacteristic;

Parameters

mediaCharacteristic

The media characteristic used to filter the asset.

Return Value

An array of AVMovieTrack objects that contains tracks with the specified media characteristic. Returns an empty array if there are no tracks matching the specified media characteristic.

See Also

Creating Movie Tracks

- trackWithTrackID:

Provides a movie track associated with the specified track ID.

- tracksWithMediaType:

Provides the movie tracks of the specified media type associated with an asset.