Interface ReadyStateChangeEvent

Fired when ChromelessPlayer.readyState changes.

interface ReadyStateChangeEvent {
    currentTime: number;
    date: Date;
    readyState: number;
    type: "readystatechange";
}

Hierarchy (view full)

  • Event<"readystatechange">
    • ReadyStateChangeEvent

Properties

currentTime: number

The player's current time.

date: Date

The creation date of the event.

readyState: number

The player's new ready state, represented by a value from the following list:
- 0 (HAVE_NOTHING): The player has no information about the duration of its source.
- 1 (HAVE_METADATA): The player has information about the duration of its source.
- 2 (HAVE_CURRENT_DATA): The player has its current frame in its buffer.
- 3 (HAVE_FUTURE_DATA): The player has enough data for immediate playback.
- 4 (HAVE_ENOUGH_DATA): The player has enough data for continuous playback.


- See the HTML Media Specification

type

The type of the event.