Re: Promises in 1.0

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