mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 17:20:30 +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;
|
||||
}
|
||||
if (frames !== null) {
|
||||
info = `${frames - __frames} fps dynamic`;
|
||||
info = `${Math.max(0, frames - __frames)} fps dynamic`;
|
||||
__frames = frames;
|
||||
} else {
|
||||
info = `${__handle.getBitrate()}`.replace("kbits/sec", "kbps");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user