eduardolundgren / eduardolundgren/tracking.js
Uncaught (in promise) Error: Cannot capture user camera.
- Dominant language
- JavaScript
- Stars
- 9.5k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the browser console output from tracking-min.js, especially the getUserMedia() deprecation and the Cannot capture user camera error. Reproduce the camera request in the reported environment and check whether the application is being served from a secure origin; done means the camera capture works without the error or the issue is documented as an environment requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-vision, web-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100