Webcam Js Error in Chrome: Could Not Access Webcam

Webcam js Error in Chrome: Could not access webcam

Chrome 47 requires that the site be HTTPS in order for user media / webcam to work! This is a brand new requirement that I didn't see coming...

Chromium Docs on the topic:
https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features

This means I'll have to buy a SSL cert. The library should work fine in Chrome 47, as long as you are using it on 127.0.0.1, or over HTTPS.

Issue Discussion

Solution

Webcam js Error in Chrome,firefox: Could not access webcam from remote client

Web browser does not support user media calls from insecure URLs. So you can't use the camera or microphone from a web request that doesn't have SSL. Only these devices are accessible from localhost or HTTPS.

There is another way (not recommended) to solve this problem manually configure the web browsers.

chrome://flags/#unsafely-treat-insecure-origin-as-secure


Related Topics



Leave a reply



Submit