Version: 2.67.0

PlayerEventMap

THEOplayer > PlayerEventMap

PlayerEventMap interface

The events fired by the ChromelessPlayer.

Signature:
export interface PlayerEventMap

Properties

Property

Type

Description

canplay

Event

Fired when the player can resume playback of the media data.

canplaythrough

Event

Fired when the player can resume playback of the media data and buffering is unlikely.

contentprotectionsuccess

Event

Fired when the key is usable for decryption.

currentsourcechange

Event

Fired when the current source, which is chosen from ChromelessPlayer.source.sources, changes.

destroy

Event

Fired when the the player is destroyed.

dimensionchange

Event

Fired when the dimensions of the HTML element changes.

durationchange

Event

Fired when ChromelessPlayer.duration changes.

emptied

Event

Fired when the player's source is cleared.

encrypted

Event

Fired when the player encounters key system initialization data in the media data.

ended

Event

Fired when playback has stopped because the end of the media resource was reached.

error

Event

Fired when an error occurs.

loadeddata

Event

Fired when the player can render the media data at the current playback position for the first time.

loadedmetadata

Event

Fired when the player determines the duration and dimensions of the media resource.

loadstart

Event

Fired when the player starts loading the manifest.

manifestupdate

Event

Fired when the manifest is updated.

pause

Event

Fired when ChromelessPlayer.paused changes to true.

play

Event

Fired when ChromelessPlayer.paused changes to false.

playing

Event

Fired when playback is ready to start after having been paused or delayed due to lack of media data.

progress

Event

Fired when the player loaded media data.

ratechange

Event

Fired when ChromelessPlayer.playbackRate changes.

readystatechange

Event

Fired when ChromelessPlayer.readyState changes.

representationchange

Event

Fired when the current representation changes.

resize

Event

Fired when either ChromelessPlayer.videoWidth or ChromelessPlayer.videoHeight changes.

seeked

Event

Fired when ChromelessPlayer.seeking changes to false after the current playback position was changed.

seeking

Event

Fired when ChromelessPlayer.seeking changes to true, and the player has started seeking to a new position.

segmentnotfound

Event

Fired when a segment can not be found.

sourcechange

Event

Fired when ChromelessPlayer.source changes.

timeupdate

Event

Fired when the current playback position changed as part of normal playback or in an especially interesting way, for example discontinuously.

volumechange

Event

Fired when ChromelessPlayer.volume changes.

waiting

Event

Fired when playback has stopped because the next frame is not available, but the player expects that frame to become available in due course.