Instance Method

track(withTrackID:)

Provides a movie track associated with the specified track ID.

Declaration

func track(withTrackID trackID: CMPersistentTrackID) -> AVFragmentedMovieTrack?

Parameters

trackID

The persistent track identifier.

Return Value

An instance of AVFragmentedMovieTrack that contains the track associated with the track ID or nil when no track is available.

See Also

Creating Fragmented Movie Tracks

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

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

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

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