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

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

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Fri, 26 Jul 2013 11:45:09 +1000
Message-ID: <CAHp8n2m-pJ9WYhMw0er4Vefd69+GNdJ_R5tVaKjD2bO3kqrhKg@mail.gmail.com>
To: cowwoc <cowwoc@bbs.darktech.org>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
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

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