This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25769 - Need extensibility for media types that are not audio or video
Summary: Need extensibility for media types that are not audio or video
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 25752
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-18 13:41 UTC by Cullen Jennings
Modified: 2014-09-11 14:39 UTC (History)
4 users (show)

See Also:


Attachments

Description Cullen Jennings 2014-05-18 13:41:29 UTC
The spec needs to be clearly extensible for new media types (the range or depth camera use case is one example of this). I think this means we need a way get all the tracks, not just the audio and video ones [ actually , I seem to recall we agreed long ago to add that]. 

We also need to be be clear how to extend MST.kind, MediaDeviceKind, and SourceTypeEnum. The way SourceTypeEnum is defined my have problems extending due to limitations of WebIDL so may need to change the way it is defined.
Comment 1 Harald Alvestrand 2014-07-01 08:24:43 UTC
MST.kind seems easy to extend (it's the same string as the media type).

MediaDeviceInfo.kind currently has "audioinput", "audiooutput" and "videoinput".

Since MediaDeviceInfo.kind is only returned from the platform, never passed to it, we do not have the problem we had with facingMode of the platform throwing on extensions it does not understand.

sourceTypeEnum's future is discussed in bug 25752. Adding that as a dependency for this one.
Comment 2 Stefan Hakansson LK 2014-07-07 13:03:00 UTC
There is now a way to get all tracks (regardless of kind) of a MediaStream: getTracks.

Concluding the sourceType discussion remains though.
Comment 3 Adam Bergkvist 2014-08-22 08:57:15 UTC
(In reply to Stefan Hakansson LK from comment #2)
> Concluding the sourceType discussion remains though.

That's done and sourceTypes is removed. How does that affect this bug?
Comment 4 Cullen Jennings 2014-09-11 14:39:05 UTC
There is now a method to get all the track and from each track you find get it's kind so I believe this bug has "fixed"