Instance Property

timeRange

The time range of the track within the overall timeline of the asset.

Declaration

@property(nonatomic, readonly) CMTimeRange timeRange;

Discussion

If the time range’s start is greater than kCMTimeZero, the track does not initially have media data to present when its asset is presented. One case in which this may occur is when an audio track is delayed in order to align the start of audio with a specific video frame. You can test for this as follows:

if CMTIME_COMPARE_INLINE(track.timeRange.start, >, kCMTimeZero) {
    // delayed start
}

See Also

Retrieving Temporal Properties

naturalTimeScale

The natural time scale of the media referenced by this track.