W3C home > Mailing lists > Public > public-webrtc@w3.org > January 2015

Re: RTCStatsType value for datachannel stata

From: Harald Alvestrand <harald@alvestrand.no>
Date: Tue, 20 Jan 2015 17:42:03 +0100
Message-ID: <54BE855B.7040206@alvestrand.no>
To: public-webrtc@w3.org
On 01/15/2015 10:06 PM, Jan-Ivar Bruaroey wrote:
> On 1/15/15 1:54 PM, Cullen Jennings (fluffy) wrote:
>>> On Jan 5, 2015, at 2:40 PM, Harald Alvestrand <harald@alvestrand.no> 
>>> wrote:
>>>
>>> The current RTCStatsType is defined like this:
>>>
>>> enum RTCStatsType {
>>>      "inboundrtp",
>>>      "outboundrtp",
>>>      "session",
>>>      "track",
>>>      "transport",
>>>      "candidatepair",
>>>      "localcandidate",
>>>      "remotecandidate"
>>> };
>>>
>>> There are no values for the datachannel stats.
>>>
>>> To make this symmetric with RTP, I suggest we add "inbounddata" and 
>>> "outbounddata".
>>>
>>> -- 
>>>   Surveillance is pervasive. Go Dark.
>>>
>> On a related topic to this, I think we should change this from an 
>> enum to a string because of the issues where we can't extent an enum 
>> in webIDL
>
> I believe we're only in trouble if we take RTCStatsType as input 
> somewhere, I don't think we do.
>
> .: Jan-Ivar :.
>
>
There's also an issue with the fact that enums don't support partial, 
the way interfaces do, so according to WebIDL formality, we're stuck 
with having to define them once.

We may be better off with strings here; in Javascript, they're strings 
anyway, so might as well admit it in the WebIDL API too.
Received on Tuesday, 20 January 2015 16:42:37 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:42 UTC