events
The schedule of interstitial events.
Declaration
var events: [AVPlayerInterstitialEvent] { get }Discussion
When the primary player’s content specifies the schedule of interstitial events intrinsically, this property value typically changes whenever primary player’s currentItem changes. For HLS content that specifies interstitials using of DATERANGE tags, the value of this property may also change whenever the set of DATERANGE tags in the current item’s media playlist changes.
When you specify the schedule of interstitial events using an AVPlayerInterstitialEventController, this property value changes only when you update the interstitial event controller’s schedule.
See Also
Monitoring the event schedule
eventsDidChangeNotificationinterstitialEventWasUnscheduledNotificationinterstitialEventWasUnscheduledEventKeyinterstitialEventWasUnscheduledErrorKeyinterstitialEventDidFinishNotificationinterstitialEventDidFinishEventKeyinterstitialEventDidFinishPlayoutTimeKeyinterstitialEventDidFinishDidPlayEntireEventKey