templateItems
An array of player item configurations to use as templates for player items that play interstitial content.
Declaration
var templateItems: [AVPlayerItem] { get set }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.