eduardolundgren / tracking.js

A modern approach for Computer Vision on the web
http://trackingjs.com
Other
9.43k stars 1.44k forks source link

Uncaught (in promise) Error: Cannot capture user camera. #307

Open FritzAgency opened 6 years ago

FritzAgency commented 6 years ago

I was able to access the camera this morning but when I tried using it after some hours it stopped working and am worried why. So I checked my console and see the following error message:

tracking-min.js:8 [Deprecation] getUserMedia() no longer works on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See https://goo.gl/rStTGz for more details.
tracking.initUserMedia_ @ tracking-min.js:8
15:44:30.403 tracking-min.js:8 Uncaught (in promise) Error: Cannot capture user camera.
    at tracking-min.js:8 

What could have gone wrong and how do I solve it.

murat-aka commented 6 years ago

The error message is saying, the website address you are trying to access should start with https:// not http://

FritzAgency commented 6 years ago

@murat-aka Does that mean I can't use tracking.js on my localhost?

Also, please don't forget my issue here https://github.com/eduardolundgren/tracking.js/issues/305

Thanks for being helpful.