Instance Method

initWithTimeRange:

Initializes an interstitial time range object with the specified time range.

Declaration

- (instancetype)initWithTimeRange:(CMTimeRange)timeRange;

Parameters

timeRange

The time range to be identified as interstitial content.

Return Value

A new interstitial time range object.

Discussion

To associate interstitial time ranges with an asset for playback, use the interstitialTimeRanges property of an AVPlayerItem object.