reset method

void reset()

Reset all in-flight controller state (leaky bucket, frame / byte / drop counters, current qi back to startQi). The configured bitrate / framerate / qi window are NOT touched. Pair with Vp8Encoder.reset when restarting a session.

Implementation

void reset() {
  _bufferBits = 0.0;
  _framesEncoded = 0;
  _totalBitsEmitted = 0;
  _consecutiveDrops = 0;
  _totalDropped = 0;
  _currentQi = startQi;
}