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
Hi

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).

/Adam
Received on Monday, 12 December 2011 23:36:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:14:58 GMT