Instance Property


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


var timeRange: CMTimeRange { get }


If the time range’s start is greater than zero, 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 track.timeRange.start > kCMTimeZero {
    // delayed start

See Also

Retrieving Temporal Properties

var naturalTimeScale: CMTimeScale

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