Re: Canceling pending getUserMedia() call

On Mon, Apr 27, 2015 at 8:10 AM, Jan-Ivar Bruaroey <jib@mozilla.com> wrote:

>  On 4/27/15 10:03 AM, Eric Rescorla wrote:
>
>  On Mon, Apr 27, 2015 at 5:15 AM, Jan-Ivar Bruaroey <jib@mozilla.com>
> wrote:
>
>>  What happened to "a more general discussion [...] about permissions and
>> what APIs we should offer around them"? - We seem to have moved on to where
>> to stick the API (which is irresistible, so I'll jump in).
>>
>> Can we sidestep the whole fetch debate with:
>> navigator.mediaDevices.cancelOutstandingGumRequests() ?
>>
>
>  This seems like an unwarranted piece of special casing.
>
>
> For clarification: it would only cancel requests from the current window
> and down.
>

I would certainly hope so.



> Would like to understand when finer control would be needed (the global in
> the room is the end-user).
>

As I said, this seems like special casing. Given that the
promise-cancellation approach
is (a) more flexible (b) more general and (c) seems to be coming anyway,
what are
the merits of special-case code here?

-Ekr

Received on Monday, 27 April 2015 15:15:14 UTC