w3c / webrtc-nv-use-cases

Use cases for WebRTC NV
https://w3c.github.io/webrtc-nv-use-cases/
Other
32 stars 13 forks source link

Should DataChannels have a getStats() method, should they be usable as selector to the getStats algorithm? #22

Open na-g opened 5 years ago

na-g commented 5 years ago

As it stands if one wants to check the stats of a RTCDataChannel one needs to poll the stats of the entire RTCPeerConnection. Does it make sense to allow RTCDataChannel stats to be accessed directly like RTCRtpSenders and RTCRtpReceivers via a getStats() method? Does that also imply that RTCDataChannels should be accepted as a selector for the getStats() algorithm?

alvestrand commented 5 years ago

Has anyone operating a service based on datachannels asked for stats on individual datachannels?

Unlike media, traffic on a datachannel is byte-countable at the API.

I'd like to add stats to address operational concerns with WebRTC 1.0, and leave additional functionality to use cases in the NV document if I can.

aboba commented 5 years ago

In ORTC, the RTCSctpTransport has stats associated with it, but not the RTCDataChannel object. For ORTC, this seems like an oversight. But the benefit of adding support for this in WebRTC 1.0 seems slim.