BitrateRegulator

abstract class BitrateRegulator(bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit)

Base class of 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 IBitrateRegulatorFactory.

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)