Instance Method

tracksWithMediaType:

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

Declaration

- (NSArray<AVMovieTrack *> *)tracksWithMediaType:(AVMediaType)mediaType;

Parameters

mediaType

The media type used to filter the asset.

Return Value

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

See Also

Creating Movie Tracks

- trackWithTrackID:

Provides a movie track associated with the specified track ID.

- tracksWithMediaCharacteristic:

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