Start a log
a Log object with the levels of log to call
Get the number of audio sample per second currently decoding
Gets the current playback buffer duration in milliseconds
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
Returns true When player is buffering data on start or after a stall. Become false when reach bufferLimitMiddle (in this case bufferState == BufferState.OK)
Get maximum resolution that the MBR algo can reach, undefined means no limit. Defaults to the value of Media.screenResolution
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
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.
Get the number of video frame per second currently decoding
Event subscription
Name of event without the on
prefix (ex: log
to onLog
event declared)
Subscriber Function
Optional
options: { Optional
signal?: 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
Optional
options: { Optional
signal?: AbortSignalEvent fire when buffer state change
Interface for real-time playback information