W3C home > Mailing lists > Public > public-media-capture@w3.org > October 2012

Re: suggest a parameter in getUserMedia

From: Anant Narayanan <anant@mozilla.com>
Date: Sun, 28 Oct 2012 15:19:23 -0700 (PDT)
To: public-media-capture@w3.org
Message-ID: <1020584349.6016735.1351462763004.JavaMail.root@mozilla.com>
----- Sunyang (Eric) <eric.sun@huawei.com> wrote:
> During development, we do not need keyboard or mouse for input, just video camera for input.So it is not possible to use keyboard/mouse to select the options, and  our use case can have other way for user authentication.
> 
> And can we have a mode, that getUserMedia only generate mediastream without prompt to user for camera usage confirmation?
> 
> Can we have a parameter "popup:off" in getUserMedia ({video:true,audio:true,popup:off},gotStream,noStream)
> So browser will not prompt to user select device, and silently activate the camera and audio deivce.

In Firefox, you may set the "media.navigator.permissions.disabled" preference to true via about:config (and custom builds) to disable the permission prompt. This is intended for use by developers, similar to the case you describe above.

-Anant
Received on Sunday, 28 October 2012 22:19:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:02 GMT