W3C home > Mailing lists > Public > public-media-capture@w3.org > February 2015

Re: Input needed: Cancelling a permission request?

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Thu, 19 Feb 2015 15:31:53 +0100
Message-ID: <CALiegf=bDDGF2ciJ7TDM4wn+WqMDMZ-qYx9XVVJxGiGN_ZxnFQ@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: "public-media-capture@w3.org" <public-media-capture@w3.org>
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(........);


Similar to clearTimeout() and so on.

Iñaki Baz Castillo
Received on Thursday, 19 February 2015 14:32:41 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 19 February 2015 14:32:41 UTC