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

Re: Input needed: Cancelling a permission request?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Thu, 26 Feb 2015 12:43:04 +0100
Message-ID: <CADnb78i-hKwYO8YB-Z6D4yxbufLvWYfZ3owHj_a=JoOohRmFkQ@mail.gmail.com>
To: Stefan HÃ¥kansson LK <stefan.lk.hakansson@ericsson.com>
Cc: Harald Alvestrand <harald@alvestrand.no>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On Thu, Feb 26, 2015 at 12:33 PM, Stefan HÃ¥kansson LK
<stefan.lk.hakansson@ericsson.com> wrote:
> What is supposed to happen if you do:
>
> var p = navigator.mediaDevices.getUserMedia(options);
>
> followed by
>
> p.constructor.reject();

There's no public way to reject p. Promise.reject() is a static method
to create an instance of a rejected promise.


-- 
https://annevankesteren.nl/
Received on Thursday, 26 February 2015 11:43:28 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 26 February 2015 11:43:28 UTC