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

On Fri, Jul 26, 2013 at 9:54 AM, cowwoc <cowwoc@bbs.darktech.org> wrote:
> On 25/07/2013 6:17 PM, Silvia Pfeiffer wrote:
>>
>> On Fri, Jul 26, 2013 at 1:51 AM, cowwoc <cowwoc@bbs.darktech.org> wrote:
>>>
>>>      I think there is a misunderstanding of the issue. I am asking to
>>> differentiate between:
>>>
>>> * Access denied by the user (whether directly or by way of a saved
>>> preference)
>>
>> Looking at
>> http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserMediaError,
>> that's the error message PERMISSION_DENIED
>>
>>> * Access denied by the browser
>>
>> and this would be CONSTRAINT_NOT_SATISFIED - or wouldn't it?
>
>
>     I'll quickly recap what is going on:
>
>     When I execute my application from http:// it works. When I execute the
> exact same application from file:// it fails on getUserMedia(). Why?
> Apparently Chrome denies local HTML files access to the microphone and
> camera. See https://code.google.com/p/chromium/issues/detail?id=257104


Yes, that's a cross origin issue with lots of things on the Web these
days. That should actually get you a SecurityError:
http://dom.spec.whatwg.org/#dom-domexception-security_err


HTH,
Silvia.

Received on Friday, 26 July 2013 01:45:56 UTC