You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
are you using "localhost" or "127.0.0.1" or "0.0.0.0"? try one of those. Also check https flag at "chrome://flags" and enable that to check if it works
are you using "localhost" or "127.0.0.1" or "0.0.0.0"? try one of those. Also check https flag at "chrome://flags" and enable that to check if it works
@Dushyantsingh-ds can you share an image and the output of the server when you try to run it? I want to see the output on terminal or the console in dev tools.
The actual green camera light goes on, but no image appears on the screen, just a white background.
At this url: http://127.0.0.1:5500/face-detection/index.html
And this warning in the console:
Activity
vinamramunot-tech commentedon Oct 8, 2020
are you using "localhost" or "127.0.0.1" or "0.0.0.0"? try one of those. Also check https flag at "chrome://flags" and enable that to check if it works
Ikigainuxxxx commentedon Dec 13, 2020
what should i enable?
vinamramunot-tech commentedon Dec 17, 2020
@Ikigainuxxxx https://community.spiceworks.com/how_to/154601-chrome-allow-localhost-site-even-without-https-certificate
Dushyantsingh-ds commentedon Dec 31, 2020
This didn't work!
vinamramunot-tech commentedon Jan 12, 2021
@Dushyantsingh-ds can you share an image and the output of the server when you try to run it? I want to see the output on terminal or the console in dev tools.
vinamramunot-tech commentedon Jan 22, 2021
@WebDevSimplified you can close this issue
AlexDinger commentedon Apr 3, 2021
@vinamramunot-tech I am having this issue as well and I have no errors whatsoever but the camera just wont show up
vinamramunot-tech commentedon Apr 4, 2021
@AlexDinger are you running this on http or https?
one alternative is to enable chrome flags:

3. run your website as "localhost:". you can have the port number as anything you want, an example is localhost:5050vinamramunot-tech commentedon Apr 4, 2021
@AlexDinger Also check if any other application is using the camera. Are you running the code on mac/linux or windows?
mister-bee commentedon Apr 26, 2021
The actual green camera light goes on, but no image appears on the screen, just a white background.

At this url: http://127.0.0.1:5500/face-detection/index.html
And this warning in the console:
vinamramunot-tech commentedon Apr 28, 2021
@mister-bee try "http://localhost:5500/face-detection/index.html" and enable the flag I have talked about in the previous comment.
abdelmark commentedon Mar 23, 2022
function startVideo() { navigator.mediaDevices.getUserMedia({ video: {} }).then(stream => { const video = document.getElementById('video') video.srcObject = stream video.paly() }) .catch( err => { console.log('Failed to get local stream' ,err); }) }use this startVideo function instead.