From 32560563dc41f19633944e18cf16fef05b88c407 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Thu, 17 Aug 2023 21:26:58 +0300 Subject: web: janus: enabled kbps meter with fps meter --- web/share/js/kvm/stream_janus.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'web') 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); -- cgit v1.2.3