init(primaryItem:date:)
Creates an interstitial event for the specified date.
Declaration
convenience init(primaryItem: AVPlayerItem, date: Date)Parameters
- primaryItem:
A player item that provides the primary playback content. It defines the timeline during which an interstitial event occurs. The item must have an asset that provides an intrinsic mapping from its timeline to real-time dates.
- date:
A date within the timeline of the primary item at which to temporarily suspend playback of primary content, and play interstitial content instead.