W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2015

Re: Promises in 1.0

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Tue, 7 Apr 2015 15:01:03 +0200
Message-ID: <CALiegf=u=qUfziJd0Lo=W5p-mX-d3GFinM_0B-vv7P-PG6pqOA@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
2015-04-07 14:58 GMT+02:00 Harald Alvestrand <harald@alvestrand.no>:
> Just ignore the difference-hiding libraries, and call:
>
> thePromise = navigator.mediaDevices.getUserMedia()
>
> If this function exists, you have a new browser.
>
> The old callback-compatible interface is navigator.getUserMedia.

Great! But just to be sure: If navigator.mediaDevices.getUserMedia
exists, does it mean that the whole WebRTC API supports promises?


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Tuesday, 7 April 2015 13:01:54 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:43 UTC