diff options
author | Maxim Devaev <[email protected]> | 2023-08-17 21:26:58 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-08-17 21:26:58 +0300 |
commit | 32560563dc41f19633944e18cf16fef05b88c407 (patch) | |
tree | bddcecf60488252971d2c9e3e75b66cf73b3d156 /web | |
parent | 82af7b2fba5086212c61b900d4e9a75bdb3b374e (diff) |
web: janus: enabled kbps meter with fps meter
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/stream_janus.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/web/share/js/kvm/stream_janus.js b/web/share/js/kvm/stream_janus.js index 5c73e336..60090dc5 100644 --- a/web/share/js/kvm/stream_janus.js +++ b/web/share/js/kvm/stream_janus.js @@ -295,11 +295,10 @@ export function JanusStreamer(__setActive, __setInactive, __setInfo, __allow_aud } else if (el.mozPaintedFrames !== undefined) { frames = el.mozPaintedFrames; } + info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); if (frames !== null) { - info = `${Math.max(0, frames - __frames)} fps dynamic`; + info += ` / ${Math.max(0, frames - __frames)} fps dynamic`; __frames = frames; - } else { - info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); } } __setInfo(true, __isOnline(), info); |