mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
WebRTC latency in stats (#20)
* webrtc stats full report. * add ping+pong latency counter. * single console log. * remove report & add latency to webrtc stats. * fix.
This commit is contained in:
@ -109,6 +109,20 @@
|
||||
<th style="width: 40%">bitrate</th>
|
||||
<td>{{ Math.floor(neko.state.connection.webrtc.stats.bitrate / 1024 / 8) }} KB/s</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th style="width: 40%">latency</th>
|
||||
<td
|
||||
:title="
|
||||
'request: ' +
|
||||
neko.state.connection.webrtc.stats.requestLatency +
|
||||
'ms, response: ' +
|
||||
neko.state.connection.webrtc.stats.responseLatency +
|
||||
'ms'
|
||||
"
|
||||
>
|
||||
{{ neko.state.connection.webrtc.stats.latency }}ms
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>loss</th>
|
||||
<td :style="neko.state.connection.webrtc.stats.packetLoss >= 1 ? 'background: red' : ''">
|
||||
|
Reference in New Issue
Block a user