[Bug 25752] New: sourceType is redundant as constraint

https://www.w3.org/Bugs/Public/show_bug.cgi?id=25752

            Bug ID: 25752
           Summary: sourceType is redundant as constraint
           Product: WebRTC Working Group
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Media Capture and Streams
          Assignee: public-media-capture@w3.org
          Reporter: shijuns@microsoft.com
                CC: public-media-capture@w3.org

In the MediaStreamConstraints dictionary, the "video" and "audio" properties
already indicate whether the source should be a camera or microphone for the
specific MediaTrackConstraints. Having an "sourceType" doesn't give the UA more
meaningful instruction, meanwhile, can introduce unnecessary conflict, e.g. by
setting the sourceType to "camera" on the "audio" property.

Also, typically we should not expect the sourceType to change while applying
new constraints on an existing MediaStreamTrack.  MediaStreamTrack.kind
indicates the sourceType already.  There is no clear value keeping the
sourceType as constraints in this case either.

sourceType "none" is covered by the MediaStreamTrack.radyState, again
redundant.

Suggest removing sourceType from the constraints list, and mapping the concept
to other attributes defined in the spec already.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.

Received on Friday, 16 May 2014 22:54:02 UTC