BitrateRegulator
abstract class BitrateRegulator(val metricsTracker: EndpointMetricsTracker, val bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit) : IBitrateRegulator(source)
Abstract class for the bitrate regulation implementation.
If you want to implement your custom bitrate regulator, it must inherit from this class. The bitrate regulator object is created by streamers through the IBitrateRegulator.Factory.
Parameters
metricsTracker
endpoint metrics tracker
bitrateRegulatorConfig
bitrate regulation configuration
onVideoTargetBitrateChange
call when you have to change video bitrate
onAudioTargetBitrateChange
call when you have to change audio bitrate
Inheritors
Constructors
Link copied to clipboard
constructor(metricsTracker: EndpointMetricsTracker, bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit)