W3C home > Mailing lists > Public > public-media-capture@w3.org > December 2011

getUserMedia default values

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Mon, 12 Dec 2011 16:36:53 +0100
Message-ID: <4EE61F95.7020808@ericsson.com>
To: public-media-capture@w3.org

I think it would be nicer to specify what kind of media your application 
wants rather than what it doesn't want. E.g., with the current spec the 
following applies:

navigator.getUserMedia({audio:false}, cb); // means video
navigator.getUserMedia({audio:true}, cb); // means audio and video

With the current "opt-out" approach your application will also ask for 
permission to use all future media types (which are hard to opt-out from 
before they exist).

Received on Monday, 12 December 2011 23:36:51 UTC

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