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

Re: [Bug 18443] New: getUserMedia() Test Error in Chrome

From: Gaowenmei <gaowenmei@huawei.com>
Date: Tue, 31 Jul 2012 11:48:29 +0000
To: Tommy Widenflycht (ᛏᚮᛘᛘᚤ) <tommyw@google.com>, "bugzilla@jessica.w3.org" <bugzilla@jessica.w3.org>
CC: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <10FB9842605CBF44BB21AE26C3C4379633555D79@SZXEML540-MBX.china.huawei.com>
Thank you very much Tommy.

But I think in some scenarios we need to open local html files, for example, open an installed web app which implements getUserMedia() function.  I’m wondering how to guarantee the security for this scenario.

Best Regards.
Gao Wenmei

发件人: Tommy Widenflycht (ᛏᚮᛘᛘᚤ) [mailto:tommyw@google.com]
发送时间: 2012年7月31日 17:33
收件人: bugzilla@jessica.w3.org
抄送: public-webrtc@w3.org
主题: Re: [Bug 18443] New: getUserMedia() Test Error in Chrome

This is definitely the wrong place for this issue, but the short answer is: Yes, it is by design and for security reasons. The UI in chrome will be redesigned in the near future to not to show the permissions bar for local html files.

/Tommy
On Tue, Jul 31, 2012 at 5:36 AM, <bugzilla@jessica.w3.org<mailto:bugzilla@jessica.w3.org>> wrote:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=18443


           Summary: getUserMedia() Test Error in Chrome
           Product: WebRTC Working Group
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebRTC API
        AssignedTo: public-webrtc@w3.org<mailto:public-webrtc@w3.org>
        ReportedBy: gaowenmei@huawei.com<mailto:gaowenmei@huawei.com>
                CC: public-webrtc@w3.org<mailto:public-webrtc@w3.org>


Browser: Chrome 21.0.1155.2

I wrote a simple demo to test getUserMedia() function. The demo is just to show
the video stream from my local camera.

But I encountered a strange problem:

1) If I open the test.html directly in the browser(double click or drag to the
browser), there will be a popup window to obtain user's confirmation. I clicked
the "Allowed" button, but I could see nothing on the page. At the same time,
however, there was a success notification on the taskbar, saying "file:// is
using your camera and microphone".

2) If I put the test.html to apache's home directory and open the page through
"http://localhost/test.html", there will also be a popup window. When I clicked
the "Allowed" button, I could see the video stream from my camera successfully!
At the same time, there was also a success notification on the taskbar, saying
"http://localhost is using your camera and microphone".

I was wondering what is the reason of the problem. Is there any difference
between "double-click open" and "localhost open" when calling getUserMedia()
function?

Thanks.

--
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email

------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.



--
Tommy Widenflycht, Senior Software Engineer
Google Sweden AB, Kungsbron 2, SE-11122 Stockholm, Sweden
Org. nr. 556656-6880
And yes, I have to include the above in every outgoing email according to EU law.
Received on Tuesday, 31 July 2012 11:50:53 UTC

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