Re: Input needed: Cancelling a permission request?

2015-02-19 15:25 GMT+01:00 Harald Alvestrand <harald@alvestrand.no>:
> Our alternatives include:

> - Not doing anything, letting apps deal with the issues as described
> above, or living with it

>From my experience I do not like that no-solution because indeed it
fixes nothing :)


> - Adding a timeout parameter to getUserMedia, which allows the prompt to
> fade away after a while

Don't like. Better let the app to use its own setTimeout and call
cancel() as the bullet below suggests.


> - Adding a "cancel" mechanism wehre a the gUM promise can be resolved by
> the Javascript not the platform, leading to the prompt disappearing

Like it.


getUserMedia() may return something (regardless it is Promise based or
not), so we could do:

var gUM = navigator.getUserMedia(........);

navigator.clearGeUserMedia(gUM);


Similar to clearTimeout() and so on.




-- 
Iñaki Baz Castillo
<ibc@aliax.net>

Received on Thursday, 19 February 2015 14:32:41 UTC