# BitrateManager

open class BitrateManager(bitrateChecker: BitrateChecker)

Created by pedro on 8/04/21. Improved by perotom on 7/05/24.

Calculate video and audio bitrate per second based on an exponential moving average.

## Constructors

BitrateManager
Link copied to clipboard
constructor(bitrateChecker: BitrateChecker)

## Properties

exponentialFactor
Link copied to clipboard
var exponentialFactor: Float

## Functions

calculateBitrate
Link copied to clipboard
suspend fun calculateBitrate(size: Long)
reset
Link copied to clipboard
fun reset()