Instance Method

segmentForTrackTime:

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

Declaration

- (AVAssetTrackSegment *)segmentForTrackTime:(CMTime)trackTime;

Parameters

trackTime

The track time for which you want the segment.

Return Value

The track segment from the segments array that corresponds or is closest to trackTime.

See Also

Finding Track Segments

segments

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

- samplePresentationTimeForTrackTime:

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