[whatwg] Invoking getUserMedia() with Unknown Options
lachlan.hunt at lachy.id.au
Thu Mar 31 04:45:42 PDT 2011
When getUserMedia() is invoked with unknown options, the spec
currently implicitly requires a PERMISSION_DENIED error to be thrown.
In this case, the option for "foo" is unknown. Presumably, this would
fall under platform limitations, and would thus jump from step 11 to the
failure case, and throw a permission denied error.
We are wondering if this is the most ideal error to throw in this case,
as opposed to introducing a more logical NOT_SUPPORTED error, and if it
might be useful to authors to distinguish these cases?
We assume, however, that if the author requests "audio,foo", and the
user grants access to audio, then the success callback would be invoked,
despite the unknown option for "foo".
Lachlan Hunt - Opera Software
More information about the whatwg