rollingMeanFrameBytes property
double
get
rollingMeanFrameBytes
Mean of Vp8FrameStats.bytesEmitted across the most recent up to rollingWindowFrames non-dropped frames. 0.0 when rolling stats are disabled or no frames have been encoded yet.
Implementation
double get rollingMeanFrameBytes {
if (_ringFill == 0) return 0.0;
var sum = 0;
for (var i = 0; i < _ringFill; i++) {
sum += _ringBytes[i];
}
return sum / _ringFill;
}