Instance Property

segments

The time mappings from the track’s media samples to its timeline.

Declaration

@property(nonatomic, copy, readonly) NSArray<AVAssetTrackSegment *> *segments;

Discussion

The array contains instances of AVAssetTrackSegment.

See Also

Finding Track Segments

- segmentForTrackTime:

Returns the track segment that corresponds with, or is closest to, the specified track time.

- samplePresentationTimeForTrackTime:

Maps the specified track time through the appropriate time mapping and returns the resulting sample presentation time.