---
title: templateItems
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avplayerinterstitialevent/templateitems
---

# templateItems

An array of player item configurations to use as templates for player items that play interstitial content.

## Declaration

```swift
var templateItems: [AVPlayerItem] { get set }
```

## Discussion

Discussion If you require the system to create new player items using the same asset instance as the template item, create the asset with an AVURLAssetPrimarySessionIdentifierKey value equal to httpSessionIdentifier of the primary item’s asset. Creating assets this way simplifies cases where you require loading their data with a custom AVAssetResourceLoader delegate. important: The system raises an exception if template items contain assets that aren’t URL based, such as AVComposition.

## See Also

### Accessing player items

- [primaryItem](avfoundation/avplayerinterstitialevent/primaryitem.md)
