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 26810 - Proposal: Introduce promises for device access
Summary: Proposal: Introduce promises for device access
Status: RESOLVED FIXED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL: https://bug1033885.bugzilla.mozilla.o...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-15 18:50 UTC by Stefan Hakansson LK
Modified: 2014-10-28 08:12 UTC (History)
2 users (show)

See Also:


Attachments

Description Stefan Hakansson LK 2014-09-15 18:50:15 UTC

    
Comment 1 Stefan Hakansson LK 2014-09-15 18:54:34 UTC
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
Comment 2 Jan-Ivar Bruaroey [:jib] 2014-09-20 14:25:41 UTC
As requested, here'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/
Comment 3 Stefan Hakansson LK 2014-10-28 08:12:34 UTC
Promises introduced in version http://w3c.github.io/mediacapture-main/archives/20141027/getusermedia.html