Gets the audio byte rate in bytes per second, include only the audio payload data.
Get the number of audio sample per second currently decoding
Gets the current playback buffer duration in milliseconds
Returns true When player is buffering data on start or after a stall. Become false when reach bufferLimitMiddle (in this case bufferState == BufferState.OK)
Gets the high-buffer threshold for BufferState.HIGH in milliseconds
Gets the low-buffer threshold for BufferState.LOW in milliseconds
Gets the target (middle) buffer size in milliseconds. Latency control mechanisms will try to drive the buffer toward this value.
Gets the current BufferState
Gets the data byte rate in bytes per second, include messages and other non-media payload data like container overhead.
Get maximum resolution that the MBR algo can reach, undefined means no limit. Defaults to the value of Media.screenResolution
Source is CMAF and passthrough it to MSE, it's a debugging mode activable when you set Connect.Params.mediaExt to 'cmaf'
Gets the current playback rate. A value of 1.0 represents real-time playback.
Gets the effective playback speed. A value of 1.0 represents real-time playback.
Gets the current receive byte rate including audio, video and data channels
Gets whether playback is reliable
By default is false while playback is in an unreliable mode with frame skipping enabled,
otherwise can returns true when configured to not tolerate any frame loss
Gets an AbortSignal useful for subscribing to playback stop events.
Indicates whether tracks can be combined in the same request, by default tracks are combinable to optimize the number of requests
Gets the video byte rate in bytes per second, include only the video payload data.
Get the number of video frame per second currently decoding
Retrieves current player statistics.
An object containing the current player statistics as a PlayerStats object.
Event unsubscription
Name of event without the 'on' prefix (ex: 'log' to 'onLog' event declared)
Event subscription
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event subscription only one time, once time fired it's automatically unsubscribe
Name of event without the on prefix (ex: log to onLog event declared)
Subscriber Function
Optionaloptions: { signal?: AbortSignal }Optionalsignal?: AbortSignalOptional AbortSignal to stop this or multiple subscriptions in same time
Event fire on audio skipping
Event fire when buffer amount changes by a configured threshold
Event fire on playback stall
Event fire on video skipping
Interface for real-time playback information