AVPlayerInterstitialEvent
An object that provides instructions for how a player presents interstitial content.
Declaration
class AVPlayerInterstitialEventOverview
An interstitial event defines a date or time, on the timeline of its primaryItem, at which playback of interstitial content begins. It specifies the alternative interstitial content to play as an array of one or more template player items. The system uses the configuration of the event’s templateItems to build new player item instances to present the interstitial content.
Use AVPlayerInterstitialEventMonitor to observe the scheduling and progress of interstitial events. If your app requires specifying the schedule of interstitial events, use AVPlayerInterstitialEventController instead.
Topics
Creating an event
init(primaryItem:time:)init(primaryItem:date:)init(primaryItem:identifier:time:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:)init(primaryItem:identifier:date:templateItems:restrictions:resumptionOffset:playoutLimit:userDefinedAttributes:)
Identifying events
Accessing player items
Configuring cues
Inspecting timing
timedatewillPlayOnceresumptionOffsetplayoutLimitalignsStartWithPrimarySegmentBoundaryalignsResumptionWithPrimarySegmentBoundary
Managing restrictions
Accessing asset lists
Accessing attributes
Inspecting timeline occupancy
timelineOccupancyAVPlayerInterstitialEvent.TimelineOccupancysupplementsPrimaryContentcontentMayVaryplannedDuration