W3C home > Mailing lists > Public > public-webrtc@w3.org > November 2016

[webrtc-stats] RTCMediaStreamTrackStats does not have mediaType member.

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Mon, 21 Nov 2016 15:22:12 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-190747003-1479741724-sysbot+gh@w3.org>
henbos has just created a new issue for 
https://github.com/w3c/webrtc-stats:

== RTCMediaStreamTrackStats does not have mediaType member. ==
The "RTC[In/Out]boundRTPStreamStats : RTCRTPStreamStats" dictionaries 
are valid for both audio and video. RTCRTPStreamStats has a DOMString 
mediaType that is either "audio" or "video" to distinguish the two 
cases.

RTCMediaStreamTrackStats is also valid for both audio and video, but 
it has no mediaType member. You'd have to examine the other members 
(some of which are only valid for audio or video) to deduce if its for
 audio or video.

We should add "DOMString mediaType" to RTCMediaStreamTrackStats.
- Side-question: Why is this a DOMString and not an enum? Should we 
change it to enum for both dictionaries?

Alternatively we could split it up into 
"RTCMediaStream[Audio/Video]TrackStats : RTCMediaStreamTrackStats". 
Its members are mostly audio- or video-specific so why are all of the 
members in the same dictionary?

Please view or discuss this issue at 
https://github.com/w3c/webrtc-stats/issues/84 using your GitHub 
account
Received on Monday, 21 November 2016 15:22:18 UTC

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