W3C home > Mailing lists > Public > public-webrtc-logs@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:11 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-190747003-1479741724-sysbot+gh@w3.org>
henbos has just created a new issue for 

== 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 

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 
Received on Monday, 21 November 2016 15:22:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:41 UTC