mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
web: fixed negative webrtc fps
This commit is contained in:
parent
1c0ed565ce
commit
cbd386beb8
@ -280,7 +280,7 @@ function _JanusStreamer(__setActive, __setInactive, __setInfo) {
|
|||||||
frames = el.mozPaintedFrames;
|
frames = el.mozPaintedFrames;
|
||||||
}
|
}
|
||||||
if (frames !== null) {
|
if (frames !== null) {
|
||||||
info = `${frames - __frames} fps dynamic`;
|
info = `${Math.max(0, frames - __frames)} fps dynamic`;
|
||||||
__frames = frames;
|
__frames = frames;
|
||||||
} else {
|
} else {
|
||||||
info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps");
|
info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user