auto downgrade on packet loss.

This commit is contained in:
Miroslav Šedivý 2021-06-24 15:25:56 +02:00
parent 3ca8f9a71c
commit 6a8255d08a

View File

@ -73,8 +73,8 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
// current quality is not known
if (this._state.webrtc.video == null) return
// check if video is not playing
if (stats.fps) {
// check if video is not playing smoothly
if (stats.fps > 1 && stats.packetLoss < 50) {
webrtcCongestion = 0
return
}