---
title: interstitialTimeRanges
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayeritem/interstitialtimeranges
---

# interstitialTimeRanges

An array of time ranges that identify interstitial content.

## Declaration

```swift
var interstitialTimeRanges: [AVInterstitialTimeRange] { get }
```

```swift
var interstitialTimeRanges: [AVInterstitialTimeRange] { get set }
```

## Discussion

Discussion Interstitial content is material that’s unrelated to a player item’s primary content, such as advertisements and legal notices. If you use AVPlayerViewController to present an item that contains interstitial time ranges, the user interface marks those time ranges differently on the playback timeline. A player view controller can also call your app when it begins and ends playing interstitial content. You can use these events to customize playback behavior, such as preventing viewers from skipping required content. note: On iOS, the stream must define the interstitial time ranges, or you must use AVPlayerInterstitialEventController.

## See Also

### Configuring interstitial events

- [integratedTimeline](avfoundation/avplayeritem/integratedtimeline.md)
- [automaticallyHandlesInterstitialEvents](avfoundation/avplayeritem/automaticallyhandlesinterstitialevents.md)
- [translatesPlayerInterstitialEvents](avfoundation/avplayeritem/translatesplayerinterstitialevents.md)
- [template](avfoundation/avplayeritem/template.md)
