Instance Property

tracks

An array of mutable composition tracks contained by the composition.

Declaration

var tracks: [AVMutableCompositionTrack] { get }

Discussion

In a mutable composition, the tracks are instances of AVMutableCompositionTrack, whereas in AVComposition the tracks are instances of AVCompositionTrack.

See Also

Managing Tracks

func removeTrack(AVCompositionTrack)

Removes a specified track from the receiver.

func mutableTrack(compatibleWith: AVAssetTrack) -> AVMutableCompositionTrack?

Returns a track in the receiver into which any time range of a given asset track can be inserted.

func track(withTrackID: CMPersistentTrackID) -> AVMutableCompositionTrack?

Provides a composition track associated with the specified track ID.

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

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

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

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