Re: Input needed: Cancelling a permission request?

On 19/02/15 17:19, Anne van Kesteren wrote:
> On Thu, Feb 19, 2015 at 3:25 PM, Harald Alvestrand <harald@alvestrand.no> wrote:
>> https://github.com/w3c/mediacapture-main/issues/127
>>
>> The issue is this: If a getUserMedia request causes a permission prompt,
>> should there be a way for the Javascript to cause that permission prompt
>> to disappear after a while if it is not granted, cancelling the request?
>
> We don't offer this elsewhere either. If we're going to offer this as
> a new feature this should be a more general discussion I think about
> permissions and what APIs we should offer around them.


What is supposed to happen if you do:

var p = navigator.mediaDevices.getUserMedia(options);

followed by

p.constructor.reject();

?

Stefan

Received on Thursday, 26 February 2015 11:33:39 UTC