[webrtc-stats] example 8.2: calculating fraction lost vs fractionLost stat

fippo has just created a new issue for https://github.com/w3c/webrtc-stats:

== example 8.2: calculating fraction lost vs fractionLost stat ==
the example in 8.2 essentially attempts to show a warning to the user if the packet loss is > 30%.
It calculates the fraction lost as
```
var fractionLost = (packetsSent - packetsReceived) / packetsSent;
```

Does that make sense given that we have a fraction loss
https://w3c.github.io/webrtc-stats/#dom-rtcinboundrtpstreamstats-fractionlost

Note that the fraction lost in the example is the fraction of packets lost since the last time getStats was called whereas the fractionlost on the inboundrtpstreamstats is probably the instantaneous value from the last receiver report.

Please view or discuss this issue at https://github.com/w3c/webrtc-stats/issues/190 using your GitHub account

Received on Monday, 27 March 2017 14:00:46 UTC