Amazon Vinyl
    Preparing search index...

    Interface TrackControllerEventMap<TrackLoadOptionsType>

    Type Parameters

    Hierarchy (View Summary)

    Index
    queueChange: ChangeEvent<readonly TrackLoadOptionsType[]>

    Dispatched when the queue has changed.

    Will be emitted before trackActivated.

    queueEnded: AnyRecord

    Emitted when the last track of the playback queue (and any of its postroll ads) have ended.

    trackActivated: TrackLifecycleEvent

    A track became active. For content this may be deferred behind a preroll; for an ad it fires as the ad activates. queueChange precedes it.

    trackDeactivated: TrackLifecycleEvent

    A previously-active track was torn down (superseded or unloaded).

    trackEnded: TrackEndedEvent

    Emitted when the current track — including any postroll ads — has finished playing. Fires once per track: as the queue advances it precedes the resulting trackActivated, and for the final track it precedes queueEnded. Distinct from the media element's ended (which also fires for each ad) and from an individual ad's adEnded, so applications can act on true track completion (e.g. logging a play) without confusing it with an ad ending or the content ending before its postroll plays.