<?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>26243</bug_id>
          
          <creation_ts>2014-06-30 21:15:41 +0000</creation_ts>
          <short_desc>Do we need getUserMedia() on MediaDevices?</short_desc>
          <delta_ts>2014-08-22 08:54:34 +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>Windows NT</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="Adam Bergkvist">adam.bergkvist</assigned_to>
          <cc>adam.bergkvist</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>108514</commentid>
    <comment_count>0</comment_count>
    <who name="Shijun Sun">shijuns</who>
    <bug_when>2014-06-30 21:15:41 +0000</bug_when>
    <thetext>Open a bug to track the topic on the mailing list.

In the latest version of the draft, there are two ways to call getUserMedia() within the NavigatorUserMedia.

#1: NavigatorUserMedia.getUserMedia();
#2: NavigatorUserMedia.MediaDevices.getUserMedia();

Based on previous discussions on the mailing list, a good reason to keep NavigatorUserMedia.getUserMedia() is that there are implementations and sites using it already.  Although MediaDevices.getUserMedia() looks nicer, but there seems no clear value keeping two options.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108563</commentid>
    <comment_count>1</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-07-01 08:18:47 +0000</bug_when>
    <thetext>Yes, we should probably only have one option in the spec, but I guess implementations will leave the vendor prefixed getUserMedia() on NavigatorUserMedia regardless if we move the function to MediaDevices or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108752</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-07-07 13:04:30 +0000</bug_when>
    <thetext>Sent a mail to the list on July 7th to get more input.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110449</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-08-22 06:02:43 +0000</bug_when>
    <thetext>The conclusion of the list discussion is that there should be only one way: 

#2: NavigatorUserMedia.MediaDevices.getUserMedia();

Assigning for editing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>110454</commentid>
    <comment_count>4</comment_count>
    <who name="Adam Bergkvist">adam.bergkvist</who>
    <bug_when>2014-08-22 08:54:34 +0000</bug_when>
    <thetext>Proposed fix: https://github.com/w3c/mediacapture-main/commit/30c1812084ceee87761f2ee4af9a123b0a604ec6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>