newBitrateRegulator

abstract override fun newBitrateRegulator(metricsTracker: EndpointMetricsTracker, bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit): RtmpBitrateRegulator(source)

Creates a RtmpBitrateRegulator object from given parameters

Return

a RtmpBitrateRegulator object

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