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.

Received on Sunday, 28 October 2012 22:19:50 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:12 UTC