mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
auto downgrade on packet loss.
This commit is contained in:
parent
3ca8f9a71c
commit
6a8255d08a
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user