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:
>
> PERMISSION_DENIED_BY_USER
> PERMISSION_DENIED_BY_BROWSER
>
> 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?

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

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:34 UTC