Instance Method

trackWithTrackID:

Returns the track associated with a specified track identifier.

Declaration

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

Parameters

trackID

The track identifier of the requested asset track.

Return Value

The track associated with the track identifier, or nil if no track with the specified identifier is available.

Discussion

You can call this method without blocking when the data in the tracks property is already loaded.

See Also

Accessing Tracks

tracks

The collection of all tracks contained by the asset.

trackGroups

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

- tracksWithMediaType:

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

- tracksWithMediaCharacteristic:

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

- unusedTrackID

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