Associates the track corresponding to the specified input with the track corresponding with the receiver.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
The instance of
AVAssetwith a corresponding track to associate with track corresponding with the receiver.
The type of track association to add. Common track association types, such as
AVTrackare defined in Track Association Types.
Association Type Timecode
If the type of association requires tracks of specific media types that don't match the media types of the inputs, or if the output file type does not support track associations, an
NSInvalid is raised.