Contents

track(withTrackID:)

Returns a track that contains the specified identifier.

Declaration

func track(withTrackID trackID: CMPersistentTrackID) -> AVMutableCompositionTrack?

Parameters

  • trackID:

    The persistent track identifier.

Return Value

A composition track or nil if no track is available.

Discussion

Apple discourages using this method. Load a track asynchronously using loadTrack(withTrackID:completionHandler:) instead.

See Also

Accessing tracks