diff options
author | Maxim Devaev <[email protected]> | 2022-11-21 05:39:54 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-11-21 05:39:54 +0300 |
commit | cbd386beb875fc2d19ad70d75236f88b78d5b04f (patch) | |
tree | f0f182586cebfdbc8d8a71ba0c3950d9ab3a4149 | |
parent | 1c0ed565ce22e1d5fd7a6a5c11eaba3c3eacbf54 (diff) |
web: fixed negative webrtc fps
-rw-r--r-- | web/share/js/kvm/stream.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 05f916a6..f3d9c555 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -280,7 +280,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { frames = el.mozPaintedFrames; } if (frames !== null) { - info = `${frames - __frames} fps dynamic`; + info = `${Math.max(0, frames - __frames)} fps dynamic`; __frames = frames; } else { info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); |