mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-06 10:20:26 +02:00
firefox framerate correct key.
This commit is contained in:
parent
df933c8e60
commit
0dbab610aa
1 changed files with 3 additions and 3 deletions
|
@ -348,9 +348,9 @@ export class NekoWebRTC extends EventEmitter<NekoWebRTCEvents> {
|
||||||
this.emit('stats', {
|
this.emit('stats', {
|
||||||
bitrate: (bytesDiff / tsDiff) * 1000,
|
bitrate: (bytesDiff / tsDiff) * 1000,
|
||||||
packetLoss: (packetsLostDiff / (packetsLostDiff + packetsReceivedDiff)) * 100,
|
packetLoss: (packetsLostDiff / (packetsLostDiff + packetsReceivedDiff)) * 100,
|
||||||
fps: report.framesPerSecond,
|
fps: Number(report.framesPerSecond || report.framerateMean),
|
||||||
width: report.frameWidth,
|
width: report.frameWidth || NaN,
|
||||||
height: report.frameHeight,
|
height: report.frameHeight || NaN,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue