BitrateRegulator
abstract class BitrateRegulator(val bitrateRegulatorConfig: BitrateRegulatorConfig, val onVideoTargetBitrateChange: (Int) -> Unit, val onAudioTargetBitrateChange: (Int) -> Unit) : IBitrateRegulator
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
bitrateRegulatorConfig
bitrate regulation configuration
onVideoTargetBitrateChange
call when you have to change video bitrate
onAudioTargetBitrateChange
call when you have to change audio bitrate
Constructors
Link copied to clipboard
constructor(bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit)