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 24933 - deviceId is not registered as constraints, so apps can’t choose device based on the device enumeration
Summary: deviceId is not registered as constraints, so apps can’t choose device based ...
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Dominique Hazael-Massieux
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-04 22:58 UTC by Shijun Sun
Modified: 2014-09-18 12:49 UTC (History)
4 users (show)

See Also:


Attachments

Description Shijun Sun 2014-03-04 22:58:43 UTC
In the Media Capture and Streams spec, deviceId is not registered as constraints, so apps can’t choose device based on the device enumeration.

Propose to connect deviceId and sourceId explicitly.  The following registration of sourceId in Section 14.1

The application-unique identifier for this source. The same identifier MUST be valid between sessions of this application, but MUST also be different for other applications. Some sort of GUID is recommended for the identifier.

should be appended as

The application-unique identifier for this source. The same identifier MUST be valid between sessions of this application, but MUST also be different for other applications. Some sort of GUID is recommended for the identifier.  A deviceId can be set as sourceId.
Comment 1 Stefan Hakansson LK 2014-05-08 08:59:21 UTC
In the version http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html sourceId is a constraint. 

The names should be aligned.
Comment 2 Harald Alvestrand 2014-06-30 13:22:14 UTC
Proposed resolution:

Replace 3 occurences of "deviceId" in section 9.3 "Device Info" with "sourceId".
Comment 3 Adam Bergkvist 2014-07-02 11:59:49 UTC
That would mean that audio *output* devices would have a sourceId as well. It's a bigger change but deviceId would work better for both input and output devices.
Comment 4 Stefan Hakansson LK 2014-09-15 18:43:05 UTC
Pull request: https://github.com/w3c/mediacapture-main/pull/13
Comment 5 Adam Bergkvist 2014-09-18 12:49:15 UTC
Merged pull request