Instance Property

trackGroups

An array containing all of the track groups in the asset.

Declaration

@property(nonatomic, readonly) NSArray<AVAssetTrackGroup *> *trackGroups;

Discussion

This is an array of AVAssetTrackGroup instances, each representing a different grouping of tracks in the asset. This property will contain an empty array if no track groups are defined.

See Also

Accessing Tracks

tracks

The collection of all tracks contained by the asset.

- trackWithTrackID:

Returns the track associated with a specified track identifier.

- tracksWithMediaType:

Returns an array of asset tracks associated with an asset for the specified media type.

- tracksWithMediaCharacteristic:

Returns an array of asset tracks associated with an asset for the specified characteristic.

- unusedTrackID

Returns an ID that's unused by any of the tracks in the asset.