W3C home > Mailing lists > Public > public-webrtc-logs@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-logs@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

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.4.0 : Saturday, 6 May 2023 21:19:40 UTC