<?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>22269</bug_id>
          
          <creation_ts>2013-06-04 21:04:01 +0000</creation_ts>
          <short_desc>getSourceInfos should be asynchronous (and named getSources)</short_desc>
          <delta_ts>2014-01-22 09:31:54 +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>PC</rep_platform>
          <op_sys>Linux</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="Dominique Hazael-Massieux">dom</reporter>
          <assigned_to name="Adam Bergkvist">adam.bergkvist</assigned_to>
          <cc>damon.oehlman</cc>
    
    <cc>harald</cc>
    
    <cc>juberti</cc>
    
    <cc>public-media-capture</cc>
    
    <cc>rolly</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>88667</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2013-06-04 21:04:01 +0000</bug_when>
    <thetext>See thread starting at http://lists.w3.org/Archives/Public/public-media-capture/2013Jun/0034.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88770</commentid>
    <comment_count>1</comment_count>
    <who name="Justin Uberti">juberti</who>
    <bug_when>2013-06-05 21:58:58 +0000</bug_when>
    <thetext>The current proposed name is MediaStreamTrack.getSources().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91736</commentid>
    <comment_count>2</comment_count>
    <who name="Justin Uberti">juberti</who>
    <bug_when>2013-08-07 19:27:52 +0000</bug_when>
    <thetext>The current editor&apos;s draft still says getSourceInfos() and is synchronous. Editors, can we update the spec to have the agreed async behavior?

Also, it&apos;d be nice to add some clarity about &quot;label&quot; authorization:
http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-SourceInfo-label

Spec says &quot;If the application is authorized to get info from this source&quot;; we should spell out that that means that the user has authorized a previous getUserMedia() call.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93421</commentid>
    <comment_count>3</comment_count>
    <who name="Harald Alvestrand">harald</who>
    <bug_when>2013-09-16 12:13:07 +0000</bug_when>
    <thetext>The reason for the language about label is that I did not want to tie this to getUserMedia, since we also have requestPermission; it should point at the concept of authorization, not which mechanism was used to grant authorization - more mechanisms may be added in the future.

But please, let&apos;s keep the concerns separate, we can raise a new bug for the label language if we need to.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93473</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-09-17 06:40:44 +0000</bug_when>
    <thetext>Proposed fix:

https://github.com/fluffy/webrtc-w3c/commit/0a9105e06c8d66548ed93bad33910d08e9be2883

Should the &quot;result object&quot; still be named SourceInfo after we&apos;ve renamed the method (getSourceInfos() -&gt; getSources())?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94885</commentid>
    <comment_count>5</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2013-10-17 11:25:49 +0000</bug_when>
    <thetext>Fixed in Editor&apos;s draft v20131017</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98873</commentid>
    <comment_count>6</comment_count>
    <who name="Damon Oehlman">damon.oehlman</who>
    <bug_when>2014-01-22 09:09:27 +0000</bug_when>
    <thetext>From having a read of the editors draft, it seems that all references to either MediaStreamTrack.getSources() or MediaStreamTrack.getSourceInfos() have been removed (apart from the change history).

Is this correct?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98874</commentid>
    <comment_count>7</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-01-22 09:16:43 +0000</bug_when>
    <thetext>We added functionality to enumerate output devices as well and renamed the function to getMediaDevices (it&apos;s located on the navigator object).

http://dev.w3.org/2011/webrtc/editor/getusermedia.html#enumerating-devices</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98875</commentid>
    <comment_count>8</comment_count>
    <who name="Damon Oehlman">damon.oehlman</who>
    <bug_when>2014-01-22 09:31:54 +0000</bug_when>
    <thetext>Cool - thanks for the clarification.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>