This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 18443 - getUserMedia() Test Error in Chrome
Summary: getUserMedia() Test Error in Chrome
Status: RESOLVED INVALID
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: WebRTC API (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Web RTC Working Group
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-31 03:36 UTC by Gao Wenmei
Modified: 2012-08-14 06:12 UTC (History)
3 users (show)

See Also:


Attachments

Description Gao Wenmei 2012-07-31 03:36:22 UTC
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.
Comment 1 Cullen Jennings 2012-08-13 14:51:30 UTC
Uh, is this really a bug that should be here? Can the chairs look at this.
Comment 2 Stefan Hakansson LK 2012-08-14 05:04:28 UTC
This "bug" does not belong here.
Comment 3 Gao Wenmei 2012-08-14 06:12:55 UTC
OK,it is clear now. I agree to remove it, thanks.