W3C home > Mailing lists > Public > public-webrtc@w3.org > July 2013

Re: Improve error message when browser denies access to getUserMedia()

From: Adam Bergkvist <adam.bergkvist@ericsson.com>
Date: Wed, 10 Jul 2013 10:01:37 +0200
Message-ID: <51DD14E1.8050508@ericsson.com>
To: cowwoc <cowwoc@bbs.darktech.org>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 2013-07-09 19:16, cowwoc wrote:
> Hi,
> This is a follow-up discussion to
> https://code.google.com/p/chromium/issues/detail?id=257104
> The WebRTC specification needs to provide a better error message in case
> the browser denies access to the camera, instead of the user. Currently,
> the specification states that PERMISSION_DENIED is the result of the
> user denying access. Instead of simply modifying the definition of
> PERMISSION_DENIED to cover both cases, I propose splitting it into
> separate cases:
> Alternatively, we need to add a String error message alongside the enum,
> and require browsers to issue a different error message for each case.

Will the browser ever deny permission without involving the user? I 
could imagine some future scenario where a browser policy restricts the 
browser/WebRTC from accessing certain cameras on a system, but wouldn't 
we be fine with the same error as there is no camera (available) then?

Received on Wednesday, 10 July 2013 08:02:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:17:49 UTC