Instance Property

tracks

The collection of all tracks contained by the asset.

Declaration

var tracks: [AVAssetTrack] { get }

Discussion

Tracks are instances of AVAssetTrack.

See Also

Accessing Tracks

var trackGroups: [AVAssetTrackGroup]

An array containing all of the track groups in the asset.

func track(withTrackID: CMPersistentTrackID) -> AVAssetTrack?

Returns the track associated with a specified track identifier.

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

Returns an array of asset tracks associated with an asset for the specified media type.

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

Returns an array of asset tracks associated with an asset for the specified characteristic.

func unusedTrackID() -> CMPersistentTrackID

Returns an ID that's unused by any of the tracks in the asset.