[webrtc-stats] Unclear result of stats filtering by sender/receiver. (#571)

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

== Unclear result of stats filtering by sender/receiver. ==
When filtering by sender or receiver, the stats selection algorithm is as follows:

```
- If selector is an RTCRtpSender, gather stats for and add the following objects to result:
  * All RTCOutboundRTPStreamStats objects representing RTP streams being sent by selector.
  * All stats objects referenced directly or indirectly by the RTCOutboundRTPStreamStats objects added.
- If selector is an RTCRtpReceiver, gather stats for and add the following objects to result: 
  * All RTCInboundRTPStreamStats objects representing RTP streams being received by selector.
  * All stats objects referenced directly or indirectly by the RTCInboundRTPStreamStats added.
```
but in no place it is defined which are `the stats objects referenced directly or indirectly`. 

I understand that the intention was to leave it open so the webrtc stats define those stats, but currently it is defined nowhere which would lead to not deterministic implementation on browsers.


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

Received on Thursday, 23 April 2020 15:38:03 UTC