Instance Method


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


func tracks(withMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) -> [AVFragmentedMovieTrack]



The media characteristic used to filter the asset.

Return Value

An array of AVFragmentedMovieTrack 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 Fragmented Movie Tracks

func track(withTrackID: CMPersistentTrackID) -> AVFragmentedMovieTrack?

Provides a movie track associated with the specified track ID.

func tracks(withMediaType: AVMediaType) -> [AVFragmentedMovieTrack]

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