Re: [Bug 26810] Proposal: Introduce promises for device access

On 9/20/14 10:25 AM, bugzilla@jessica.w3.org wrote:
> 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/

Promises seem to be the way forward, and work better the more API-points 
use them, so for those interested in what this might look like in the 
future, you can find a more elaborate polyfill over on the webrtc list 
that shows promises working in concert with both gUM and peerConnection. [1]

[1] http://lists.w3.org/Archives/Public/public-webrtc/2014Sep/0063.html

.: Jan-Ivar :.

Received on Monday, 22 September 2014 15:24:57 UTC