Enumeration EventType

Enumeration Members

AudioTrackChange: "audiotrackchange"

Triggered when the audio track has been changed. This may happen if the user has selected a different audio language from the settings menu, but is also triggered on the initial start of a video.

Ended: "ended"

Triggered when playback of the video has reached the end.

Error: "error"

Triggered when an error occured inside the player.

Pause: "pause"

Triggered when playback of the video has been paused.

Play: "play"

Triggered when the player has begun or resumed playback of the video.

Progress: "progress"

Triggered whenever another range of the video has been buffered.

Ready: "ready"

Triggered when the player has finished initialization and can respond to commands. This may happen more than once if a watchlist is specified. Unless PlayerOptions.autoPlay is enabled, this will only be triggered after the user has interacted with the player.

ResetReady: "resetready"

The ready state is invalidated by this event and commands will be queued internally until another EventType.Ready event is emitted.

Seeked: "seeked"

Triggered when the user has jumped to a different timestamp in the video and resumed playback from there.

TextTrackChange: "texttrackchange"

Triggered when the text track (closed captions or subtitles) has been changed. This may happen if the user has selected a different text language from the settings menu.

Timeupdate: "timeupdate"

Triggered continuously while the video is playing, at least four times per second.

VideoChange: "videochange"

Triggered when the video has been loaded. This may happen more than once if a watchlist is specified. If PlayerOptions.autoPlay is not enabled, this will not be triggered until the user has interacted with the player.

VideoLoading: "videoloading"

Triggered when the video has started to load. This may happen more than once if a watchlist is specified.

Generated using TypeDoc