---
title: interstitials
framework: tvmlkit
role: symbol
role_heading: Instance Property
path: tvmlkit/tvmediaitem/interstitials
---

# interstitials

An array of time intervals that indicate where to insert media items into another, single media item.

## Declaration

```swift
var interstitials: [TVMediaItem.TimeRange] { get }
```

## Discussion

Discussion The Interstitials property defines points within a TVMediaItem object where you can insert another media item; for example, a short ad. Each time range in the array contains two properties: startTime and duration. The startTime is the length of time from the beginning of a media item, in seconds. The duration is the length of the interstitial, in seconds. Both properties are required. A common use for these objects is to define when and where ads are to be played during a stream.

## See Also

### Setting Timing Options

- [highlightGroups](tvmlkit/tvmediaitem/highlightgroups.md)
- [TVMediaItem.HighlightGroup](tvmlkit/tvmediaitem/highlightgroup.md)
- [TVMediaItem.TimeRange](tvmlkit/tvmediaitem/timerange.md)
- [resumeTime](tvmlkit/tvmediaitem/resumetime.md)
