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:
Miroslav Šedivý
2023-01-20 23:09:01 +01:00
committed by GitHub
parent 69cb72c67f
commit a22c48c4ca
3 changed files with 49 additions and 0 deletions

View File

@ -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' : ''">