summaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-11-21 05:39:54 +0300
committerMaxim Devaev <[email protected]>2022-11-21 05:39:54 +0300
commitcbd386beb875fc2d19ad70d75236f88b78d5b04f (patch)
treef0f182586cebfdbc8d8a71ba0c3950d9ab3a4149 /web
parent1c0ed565ce22e1d5fd7a6a5c11eaba3c3eacbf54 (diff)
web: fixed negative webrtc fps
Diffstat (limited to 'web')
-rw-r--r--web/share/js/kvm/stream.js2
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");