diff options
author | Maxim Devaev <[email protected]> | 2022-11-15 15:55:59 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-11-15 15:55:59 +0300 |
commit | 70747a47acf174592246d85af9aa9a027dfc6a0a (patch) | |
tree | 3f95786cb1975223895dc20b5613914b7b782bbf /web | |
parent | da6ad16e325f6c7a3e422153f170e1cc2fa1c39c (diff) |
Don't show stream bitrate if fps is available
Diffstat (limited to 'web')
-rw-r--r-- | web/share/js/kvm/stream.js | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 3a1df717..88ed5bf4 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -282,13 +282,9 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) { if (frames !== null) { info = `${frames - __frames} fps dynamic`; __frames = frames; + } else { + info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); } - - if (info.length > 0) { - info += " / "; - } - - info += `${__handle.getBitrate()}`.replace("kbits/sec", "kbps"); } __setInfo(true, online, info); } |