[webrtc-stats] Sender-side packetsReceived can be negative from garbage RRs (#772)

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

== Sender-side packetsReceived can be negative from garbage RRs ==
Sender-side [packetsReceived](https://www.w3.org/TR/webrtc-stats/#dom-rtcreceivedrtpstreamstats-packetsreceived) is unsigned, yet is a result of a subtraction of two RR values that could be garbage.

<img width="786" alt="image" src="https://github.com/w3c/webrtc-pc/assets/3136226/bfb28dc4-1cdb-44a9-bb17-9ff190ea6e90">

Having stats reflect garbage input seems helpful for debugging, but it's unspecified what value user agents should report if the result of the subtraction is negative. Changing it to signed seems simplest, and would match `packetsLost`.

This came up in [bug 1853717](https://bugzil.la/1853717) which (ended up being a bug in Firefox instead but) raised how to handle garbage RRs from a server.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 7 November 2023 19:24:49 UTC