Vinyl
    Preparing search index...

    Interface PlaybackControllerEventMap

    interface PlaybackControllerEventMap {
        abort: AnyRecord;
        canPlay: AnyRecord;
        canPlayThrough: AnyRecord;
        durationChange: ChangeEvent<number>;
        emptied: AnyRecord;
        ended: AnyRecord;
        error: BasicErrorEvent;
        loadedData: AnyRecord;
        loadedMetadata: AnyRecord;
        loadStart: AnyRecord;
        looped: AnyRecord;
        mutedChange: ChangeEvent<boolean>;
        pause: AnyRecord;
        play: AnyRecord;
        played: PlayedEvent;
        playing: AnyRecord;
        playIsPendingChange: ChangeEvent<boolean>;
        playRejected: PlayRejectedEvent;
        progress: ProgressEvent;
        rateChange: ChangeEvent<number>;
        readyStateChange: ChangeEvent<PlaybackReadyState>;
        reset: AnyRecord;
        seeked: OperationCompletedEvent<"emptied" | "playing" | "seeked">;
        seeking: AnyRecord;
        timeUpdate: ChangeEvent<number>;
        volumeChange: ChangeEvent<number>;
        waited: OperationCompletedEvent<WaitedReason>;
        waiting: AnyRecord;
        waitingForKey: AnyRecord;
    }

    Hierarchy (View Summary)

    Index

    Properties

    abort: AnyRecord

    Fired when the resource was not fully loaded, but not as the result of an error.

    canPlay: AnyRecord

    Fired when the user agent can play the media, but estimates that not enough data has been loaded to play the media up to its end without having to stop for further buffering of content.

    readyState will be at least PlaybackReadyState.HAVE_FUTURE_DATA

    canPlayThrough: AnyRecord

    Fired when the user agent can play the media, and estimates that enough data has been loaded to play the media up to its end without having to stop for further buffering of content.

    readyState will be at least PlaybackReadyState.HAVE_ENOUGH_DATA

    durationChange: ChangeEvent<number>

    Fired when the duration attribute has been updated.

    emptied: AnyRecord

    Fired when the media has become empty; for example, this event is sent if the media has already been loaded (or partially loaded), and the load() method is called to reload it.

    readyState will be PlaybackReadyState.HAVE_NOTHING

    ended: AnyRecord

    Fired when playback or streaming has stopped because the end of the media was reached or because no further data is available.

    Dispatched when the media element dispatches an error.

    loadedData: AnyRecord

    Fired when the frame at the current playback position of the media has finished loading; often the first frame.

    readyState will be at least PlaybackReadyState.HAVE_CURRENT_DATA

    loadedMetadata: AnyRecord

    Fired when the metadata has been loaded.

    readyState will be at least PlaybackReadyState.HAVE_METADATA

    loadStart: AnyRecord

    Fired when the browser has started to load a resource.

    looped: AnyRecord

    Fired when ReadonlyPlaybackController.loop is true and playback has looped to track beginning.

    mutedChange: ChangeEvent<boolean>

    Fired when the mute status has changed.

    pause: AnyRecord

    Fired when a request to pause an activity is handled and the activity has entered its paused state, most commonly after the media has been paused through a call to the element's pause() method.

    play: AnyRecord

    Fired when the paused property is changed from true to false, as a result of the play method, or the autoplay attribute.

    played: PlayedEvent

    Fired when playback has stopped, for any reason.

    When media begins playing, a playing event is emitted. If playback stops due to 'pause', 'seeking', 'emptied', 'waiting', or 'ended', then played will be fired.

    playing: AnyRecord

    Fired after playback is first started, and whenever it is restarted. For example, it is fired when playback resumes after having been paused or delayed due to lack of data.

    playIsPendingChange: ChangeEvent<boolean>
    playRejected: PlayRejectedEvent

    Fired if play() has been attempted, but rejected.

    progress: ProgressEvent

    Fired periodically as the browser loads a resource.

    rateChange: ChangeEvent<number>

    Fired when the playback rate has changed.

    readyStateChange: ChangeEvent<PlaybackReadyState>

    Fired when ReadonlyPlaybackController.readyState has changed.

    This is fired when any of the following events have fired: loadedData, loadedMetadata canPlay canPlayThrough emptied waiting

    reset: AnyRecord

    Emitted when the error state has been reset.

    seeked: OperationCompletedEvent<"emptied" | "playing" | "seeked">

    Fired when a seek operation completed, the current playback position has changed, and the Boolean seeking attribute is changed to false.

    seeking: AnyRecord

    Fired when a seek operation starts, meaning the Boolean seeking attribute has changed to true and the media is seeking a new position.

    timeUpdate: ChangeEvent<number>

    Fired when the time indicated by the currentTime attribute has been updated.

    volumeChange: ChangeEvent<number>

    Fired when the volume has changed.

    Fired when waiting has completed. This will be emitted after a waiting event when playback has resumed, paused, or unloaded.

    waiting: AnyRecord

    Fired when playback has stopped because of a temporary lack of data.

    Note: this includes during initial loading or after a seek and data is needed to buffer. Will not be emitted when paused.

    waitingForKey: AnyRecord

    Playback is blocked waiting for a key.