Open na-g opened 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.
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.
As it stands if one wants to check the stats of a
RTCDataChannel
one needs to poll the stats of the entireRTCPeerConnection
. Does it make sense to allowRTCDataChannel
stats to be accessed directly likeRTCRtpSender
s andRTCRtpReceiver
s via agetStats()
method? Does that also imply thatRTCDataChannel
s should be accepted as a selector for thegetStats()
algorithm?