newBitrateRegulator
open override fun newBitrateRegulator(bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit): DefaultSrtBitrateRegulator
Creates a DefaultSrtBitrateRegulator object from given parameters
Return
a DefaultSrtBitrateRegulator object
Parameters
bitrateRegulatorConfig
bitrate regulation configuration
onVideoTargetBitrateChange
call when you have to change video bitrate
onAudioTargetBitrateChange
call when you have to change audio bitrate