Re: Promises (Re: New Editor's Draft of MediaStream Image Capture)

On 13/09/14 02:43, Jan-Ivar Bruaroey wrote:
> On 9/12/14 7:06 PM, Martin Thomson wrote:
>> On 12 September 2014 14:46, Eric Rescorla <ekr@rtfm.com> wrote:
>>> I don't believe this is a good change to make at this point.
>> This specific change.  Definitely.
>
> Then how about this:
>
> I notice we have two getUserMedia's already: navigator.getUserMedia (the
> one everyone is still using) and the recently added
> mediaDevices.getUserMedia.
>
> Why not leave navigator.getUserMedia with the callbacks and put promises
> on everything else, including mediaDevices.getUserMedia? Then spec the
> former to call the latter.

If we find that there is consensus to add Promises at this stage, this 
is a really good way forward to avoid breaking existing apps.

>
> .: Jan-Ivar :.
>
>
>


Received on Saturday, 13 September 2014 04:26:07 UTC