Instance Method

tracksWithMediaCharacteristic:

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

Declaration

- (NSArray<AVMutableCompositionTrack *> *)tracksWithMediaCharacteristic:(AVMediaCharacteristic)mediaCharacteristic;

Parameters

mediaCharacteristic

The media characteristic used to filter the asset.

Return Value

An array of AVMutableCompositionTrack 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

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.

- trackWithTrackID:

Provides a composition track associated with the specified track ID.

- tracksWithMediaType:

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