Instance Property


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


@property(nonatomic, readonly) CMTimeRange timeRange;


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


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