Instance Method


Creates an array containing other tracks associated with the track that uses the specified association type.


func associatedTracks(ofType trackAssociationType: AVAssetTrack.AssociationType) -> [AVAssetTrack]



The association type for which associated tracks are requested.

Return Value

An array of AVAssetTrack objects associated with the track by trackAssociationType. May be empty if no tracks are associated through the specified association type.


You can call this method without blocking after availableTrackAssociationTypes has been loaded.

See Also

Working with Associated Tracks

var availableTrackAssociationTypes: [AVAssetTrack.AssociationType]

An array of association types used to associate the track with other tracks.

struct AVAssetTrack.AssociationType

Constants for identifying how other tracks are associated with a track.