<?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>26810</bug_id>
          
          <creation_ts>2014-09-15 18:50:15 +0000</creation_ts>
          <short_desc>Proposal: Introduce promises for device access</short_desc>
          <delta_ts>2014-10-28 08:12: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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://bug1033885.bugzilla.mozilla.org/attachment.cgi?id=8492620</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="Stefan Hakansson LK">stefan.lk.hakansson</reporter>
          <assigned_to name="public-media-capture@w3.org">public-media-capture</assigned_to>
          <cc>jib</cc>
    
    <cc>public-media-capture</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>111536</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-09-15 18:50:15 +0000</bug_when>
    <thetext></thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111537</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-09-15 18:54:34 +0000</bug_when>
    <thetext>Bug added to keep track of any decision we make.

Jan-Ivar has proposed that we introduce promises for access using navigator.mediaDevices (while implementations maintain the old call-back approach for navigator.getUserMedia for some time to avoid breaking apps).

Refer to http://lists.w3.org/Archives/Public/public-media-capture/2014Sep/0080.html

Pull request at https://github.com/w3c/mediacapture-main/pull/18</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>111883</commentid>
    <comment_count>2</comment_count>
    <who name="Jan-Ivar Bruaroey [:jib]">jib</who>
    <bug_when>2014-09-20 14:25:41 +0000</bug_when>
    <thetext>As requested, here&apos;s an implementation of (just) mediaDevices.getUserMedia with promises to try out. The download link has builds for PC, Mac, Linux and Android. [1]

Test page: https://bug1033885.bugzilla.mozilla.org/attachment.cgi?id=8492620

[1] http://ftp.mozilla.org/pub/mozilla.org/firefox/try-builds/jbruaroey@mozilla.com-ed433cc24a42/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113828</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Hakansson LK">stefan.lk.hakansson</who>
    <bug_when>2014-10-28 08:12:34 +0000</bug_when>
    <thetext>Promises introduced in version http://w3c.github.io/mediacapture-main/archives/20141027/getusermedia.html</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>