Instance Property

segments

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

Declaration

var segments: [AVAssetTrackSegment] { get }

Discussion

The array contains instances of AVAssetTrackSegment.

See Also

Finding Track Segments

func segment(forTrackTime: CMTime) -> AVAssetTrackSegment?

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

func samplePresentationTime(forTrackTime: CMTime) -> CMTime

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