Skip to content

Interface: PlayerEvents ​

Properties ​

autoplayblocked ​

autoplayblocked: () => void

Returns ​

void


catalog ​

catalog: (catalog) => void

The catalog element, after the first catalog and every applied update.

Parameters ​

catalog ​

CatalogElement

Returns ​

void


client ​

client: (client) => void

The client this player uses, once connected and again before each reconnected.

Parameters ​

client ​

MOQtailClient

Returns ​

void


ended ​

ended: () => void

Returns ​

void


error ​

error: (error) => void

Parameters ​

error ​

PlayerError

Returns ​

void


pause ​

pause: () => void

Returns ​

void


playing ​

playing: () => void

Returns ​

void


reconnected ​

reconnected: () => void

Returns ​

void


reconnecting ​

reconnecting: (attempt) => void

Parameters ​

attempt ​

number

Returns ​

void


renditionchange ​

renditionchange: (source, rendition) => void

A source switched to another rendition. Not emitted for the one it starts with: read active from getRenditions().

Parameters ​

source ​

MediaSourceElement

rendition ​

Rendition

Returns ​

void


selectionchange ​

selectionchange: (source) => void

A source's selected renditions were set (selectRenditions).

Parameters ​

source ​

MediaSourceElement

Returns ​

void


stalled ​

stalled: () => void

Returns ​

void


statechange ​

statechange: (state, previous) => void

Parameters ​

state ​

PlayerState

previous ​

PlayerState

Returns ​

void


streamtypechange ​

streamtypechange: (type) => void

The catalog element's streamType changed.

Parameters ​

type ​

StreamType

Returns ​

void


timelineevent ​

timelineevent: (event) => void

A record of an opted-in event timeline, on arrival (opts.eventTimelines).

Parameters ​

event ​

TimelineEvent

Returns ​

void


warning ​

warning: (warning) => void

Parameters ​

warning ​

PlayerError

Returns ​

void