Instance Method

associatedTracksOfType:

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

Declaration

- (NSArray<AVAssetTrack *> *)associatedTracksOfType:(AVTrackAssociationType)trackAssociationType;

Parameters

trackAssociationType

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.

Discussion

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

See Also

Working with Associated Tracks

availableTrackAssociationTypes

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

AVTrackAssociationType

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