Instance Method

trackWithTrackID:

Provides a composition track associated with the specified track ID.

Declaration

- (AVMutableCompositionTrack *)trackWithTrackID:(CMPersistentTrackID)trackID;

Parameters

trackID

The persistent track identifier.

Return Value

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

See Also

Managing Tracks

tracks

An array of mutable composition tracks contained by the composition.

- addMutableTrackWithMediaType:preferredTrackID:

Adds an empty track to the receiver.

- removeTrack:

Removes a specified track from the receiver.

- mutableTrackCompatibleWithTrack:

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

- tracksWithMediaCharacteristic:

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

- tracksWithMediaType:

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