Abstract
Build the MBR implementation, call compute to use it
MBR parameters
Private
Optional
_appreciationPrivate
_learningPrivate
Optional
_mPrivate
_maximumPrivate
_testPrivate
_upStart a log
a Log object with the levels of log to call
delay added on every congestion to report next bitrate increasing
maximum delay before to increase bitrate when network quality is good
delay before to increase bitrate when network quality is good
Protected
Abstract
_downCheck if we are congested and need to reduce the bitrate now Implement this method to define your own congestion algorithm
Time since beginning of congestion, on a new state 'elapsed' is equals to 0 on first call
Track used as reference for statistics, is always the video track playing excepting if the stream is a pure audio stream
Statistics to use to determine if we have to decrease bitrate now
true if we can decrease bitrate quality now
Protected
Abstract
_upCalled when _downBitrate returns false to check if we can increase the bitrate now Implement this method to define your own congestion algorithm
Time since beginning of good network state, on the first call 'elapsed' is equals to 0
Track used as reference for statistics, is always the video track playing excepting if the stream is a pure audio stream
Statistics to use to determine if we have to increase bitrate now
true if we can increase bitrate quality now
Call this method regularly to control if we have to change track, it will update the tracks if needed and return true if a track has changed.
Metadata of the stream
the audio and video track number, this object can be updated with the new track numbers
Optional
audio?: numberOptional
video?: numberStatistics to use to determine if we have to decrease bitrate now
Optional
audio?: RTCInboundRtpStreamStatsOptional
video?: RTCInboundRtpStreamStatstrue if a track has changed, false otherwise
Private
updateTry to select the next track to use if available
the track number to update
the metadata of the stream
True if it is a down change, false if it is an up change
the new track to use or undefined if no change is possible
Generated using TypeDoc
MBRAbstract is the base class for multi-bitrate algorithm used by Player to switch between tracks quality depending on the network's congestion.