RtmpBitrateRegulator
abstract class RtmpBitrateRegulator(metricsTracker: EndpointMetricsTracker, bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit) : BitrateRegulator(source)
Base class of RTMP 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 with 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(metricsTracker: EndpointMetricsTracker, bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit)
Types
Link copied to clipboard
Factory interface you must use to create a RtmpBitrateRegulator object. If you want to create a custom RTMP bitrate regulation implementation, create a factory that implements this interface.