Amazon Vinyl
    Preparing search index...

    Interface AdEventMap

    Events dispatched by an AdController. These are provider-agnostic: an application listens once and receives the same events whether the ads originate from HLS Interstitials or DASH SCTE-35.

    Hierarchy (View Summary)

    Index
    adBreakCompleted: AdBreakCompleteEvent

    Dispatched when the current ad break has completed: all of its ads played, were skipped, it hit its playout limit, or it had no ads. Carries the position at which primary content resumes.

    adBreakEntered: AdBreakEvent

    Dispatched when an ad break has been entered — its ads may still be resolving. An ad break may contain one or more ads.

    adCompleted: AdCompleteEvent

    Dispatched when an ad has stopped playing for any reason such as ended, error, or skipped.

    Dispatched when an ad has played through 100%. Will be dispatched before adCompleted.

    adEntered: AdEvent

    Dispatched when an ad region has been entered.

    adError: AdErrorEvent

    An ad list or an individual ad failed to complete.

    adFirstQuartile: AdProgressEvent

    Dispatched when an ad has played through 25%.

    adMidpoint: AdProgressEvent

    Dispatched when an ad has played through 50%.

    adPlaying: AdEvent

    Dispatched when an ad has started playing.

    adPreload: AdBreakEvent

    Dispatched when the playhead approaches a midroll or postroll break — within the break's resolution/preload window — so its ad assets can be resolved and warmed ahead of entry. Fires once per break as it is approached (again after a seek back re-arms a replayable break). Prerolls are preloaded up front and do not emit this.

    adThirdQuartile: AdProgressEvent

    Dispatched when an ad has played through 75%.

    adTimeUpdate: AdTimeUpdateEvent

    Dispatched on each playback progress tick while an ad is active, carrying the elapsed and remaining time for both the current ad and the whole ad break. Applications should prefer this over deriving ad timing from the media element's duration.

    currentTrackAdsChange: ChangeEvent<TrackAds | null>

    Emitted when the set of known ad breaks for the current media changes, for example when a live manifest reveals a new break.