track(withTrackID:)
Returns a track that contains the specified identifier.
Declaration
func track(withTrackID trackID: CMPersistentTrackID) -> AVAssetTrack?Parameters
- trackID:
The identifier of the track to retrieve.
Return Value
An asset track, or nil if there is no track with the identifier.
Discussion
You can call this method without blocking the current thread when the data in the tracks property is already loaded.