webcam.js

Webcam js Error in Chrome: Could not access webcam

落花浮王杯 提交于 2020-07-21 03:16:09
问题 I am using Webcam JS in one of my projects. https://github.com/jhuckaby/webcamjs version I was using: 1.0.0 Latest version available: 1.0.5 It was working fine in both Chrome and Firefox. But lately webcam error started showing only in CHROME. Firefox still works fine. Error that I received in 1.0.0: Webcam.JS Error: cannot access webcam. I upgraded the version and now the error I'm getting in chrome is Webcam.js Error: Could not access webcam. Permission Error: Only secure origins are

How to use front tablet's webcam with HTML GetUserMedia?

强颜欢笑 提交于 2020-01-03 03:57:08
问题 I am trying to use WebcamJS in Chrome on Windows tablet which has 2 webcams. However, it is working only with back webcam. Any idea how to make it work with front webcam ? Thanks for any hints. 回答1: There's a fork of that project that allows that very feature (the ability to choose the camera device): https://github.com/carvilsi/webcamjs Hope this helps. 来源: https://stackoverflow.com/questions/28485544/how-to-use-front-tablets-webcam-with-html-getusermedia

Webcam.js Error: Could not locate DOM element to attach to

社会主义新天地 提交于 2019-12-11 16:56:41
问题 I am trying to use Webcam.js to capture image in my MVC project. But at the initial level I have an issue "Could not locate DOM element to attach to." I have attached script <style> .Camera { width: 320px; height: 240px; border: 1px solid black; } </style> <script type="text/javascript" src="~/Scripts/webcam.min.js"></script> <script language="JavaScript"> Webcam.set({ width: 320, height: 240, image_format: 'jpeg', jpeg_quality: 90 }); Webcam.attach('#Camera'); </script> In View <div> <div id