DefaultSrtBitrateRegulator

class DefaultSrtBitrateRegulator(bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit) : SrtBitrateRegulator

Example of bitrate regulation implementation without memory.

Parameters

bitrateRegulatorConfig

bitrate regulation configuration

onVideoTargetBitrateChange

call when you have to change video bitrate

onAudioTargetBitrateChange

not used in this implementation.

Constructors

Link copied to clipboard
constructor(bitrateRegulatorConfig: BitrateRegulatorConfig, onVideoTargetBitrateChange: (Int) -> Unit, onAudioTargetBitrateChange: (Int) -> Unit)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun update(stats: Stats, currentVideoBitrate: Int, currentAudioBitrate: Int)

Call regularly to get new SRT stats