Constants for identifying how other tracks are associated with a track.
SDKs
- iOS 11.0+
- macOS 10.13+
- Mac Catalyst 13.0+
- tvOS 11.0+
- watchOS 6.0+
Framework
- AVFoundation
Declaration
struct AssociationType
Constants for identifying how other tracks are associated with a track.
SDKs
Framework
struct AssociationType
static let audio Fallback: AVAsset Track .Association Type
The track contains the same content as another track, but in a more widely supported format.
static let chapter List: AVAsset Track .Association Type
The associated track contains chapter information for the base track.
static let forced Subtitles Only: AVAsset Track .Association Type
The subtitle track containing forced and non-forced subtitles is associated with a subtitle track containing only forced subtitles.
static let metadata Referent: AVAsset Track .Association Type
The metadata track is associated with the track being described or annotated.
static let selection Follower: AVAsset Track .Association Type
The second track in the association is considered an appropriate default for the first track.
static let timecode: AVAsset Track .Association Type
The track is associated with a timecode track containing timing information for the original track.
var available Track Association Types: [AVAsset Track .Association Type]
An array of association types used to associate the track with other tracks.
func associated Tracks(of Type: AVAsset Track .Association Type) -> [AVAsset Track]
Creates an array containing other tracks associated with the track that uses the specified association type.