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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software