iOS Developer Library

Developer

AVFoundation Framework Reference AVAssetTrackGroup Class Reference

Options
Deployment Target:

On This Page
Language:

AVAssetTrackGroup

Inheritance


Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 7.0 and later.

The AVAssetTrackGroup class encapsulates a single group of related tracks in an asset.

Instances of AVAssetTrackGroup describe a single group of related alternate tracks, only one of which should be played at a time. Groups of alternate tracks typically contain variations of the same content, such as subtitles in multiple translations.

Clients can inspect the track groups contained in an asset (AVAsset) instance by loading and obtaining the value of the asset’s trackGroups property.

  • trackIDs trackIDs Property

    The IDs of the tracks in the group. (read-only)

    Declaration

    Swift

    var trackIDs: [AnyObject]! { get }

    Objective-C

    @property(nonatomic, readonly) NSArray *trackIDs

    Discussion

    The value of this property is an array of NSNumber instances that are interpreted as CMPersistentTrackID values, one for each track in the group.

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 7.0 and later.