mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
web: fixed negative webrtc fps
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user