W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > June 2015

[mediacapture-main] getUserMedia({ }) should be a TypeError

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Jun 2015 22:42:03 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issues.opened-87132098-1433976121-sysbot+gh@w3.org>
jan-ivar has just created a new issue for 

== getUserMedia({ }) should be a TypeError ==
In hindsight, I think it's clear that `getUserMedia({ })` should be a 
`TypeError` rather than a `NotSupportedError`.

Having `{ lasers: true }` throw `NotSupportedError` may sound good, 
but gives the wrong impression, and it might surprise people to learn 
that `{ lasers: true, audio: true }` succeeds without error.

More importantly, the arrival of `requiredwe should perhaps even have 
considered TypeError instead of NotSupportedError, since the latter is
 somehwat misleading. 

See https://github.com/w3c/mediacapture-main/issues/189
Received on Wednesday, 10 June 2015 22:42:05 UTC

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