mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
Don't show stream bitrate if fps is available
This commit is contained in:
parent
da6ad16e32
commit
70747a47ac
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user