<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>24933</bug_id>
          
          <creation_ts>2014-03-04 22:58:43 +0000</creation_ts>
          <short_desc>deviceId is not registered as constraints, so apps can’t choose device based on the device enumeration</short_desc>
          <delta_ts>2014-09-18 12:49:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebRTC Working Group</product>
          <component>Media Capture and Streams</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shijun Sun">shijuns</reporter>
          <assigned_to name="Dominique Hazael-Massieux">dom</assigned_to>
          <cc>adam.bergkvist</cc>
    
    <cc>harald</cc>
    
    <cc>public-media-capture</cc>
    
    <cc>stefan.lk.hakansson</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>101871</commentid>
    <comment_count>0</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-03-04 22:58:43 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105419</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-05-08 08:59:21 +0000</bug_when>
    <thetext>In the version http://dev.w3.org/2011/webrtc/editor/archives/20140507/getusermedia.html sourceId is a constraint. 

The names should be aligned.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108489</commentid>
    <comment_count>2</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2014-06-30 13:22:14 +0000</bug_when>
    <thetext>Proposed resolution:

Replace 3 occurences of &quot;deviceId&quot; in section 9.3 &quot;Device Info&quot; with &quot;sourceId&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108649</commentid>
    <comment_count>3</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-07-02 11:59:49 +0000</bug_when>
    <thetext>That would mean that audio *output* devices would have a sourceId as well. It&apos;s a bigger change but deviceId would work better for both input and output devices.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111535</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-09-15 18:43:05 +0000</bug_when>
    <thetext>Pull request: https://github.com/w3c/mediacapture-main/pull/13</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111743</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-09-18 12:49:15 +0000</bug_when>
    <thetext>Merged pull request</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>