W3C home > Mailing lists > Public > public-webrtc@w3.org > March 2017

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

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Mon, 27 Mar 2017 14:00:40 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-217255536-1490623238-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:50 UTC