mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
Don't show stream bitrate if fps is available
This commit is contained in:
@@ -282,13 +282,9 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
|
|||||||
if (frames !== null) {
|
if (frames !== null) {
|
||||||
info = `${frames - __frames} fps dynamic`;
|
info = `${frames - __frames} fps dynamic`;
|
||||||
__frames = frames;
|
__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);
|
__setInfo(true, online, info);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user