richarddunnebsc
Active Coder
I have this code
When I load the page, Chrome should ask permission to access the camera, but it doesn't. No idea why not. Setting allows browser to ask to use camera.
HTML:
<video id="webCam" autoplay playsinline></video>
<canvas id="canvas"></canvas>
JavaScript:
const webCamElement = document.getElementById("webCam");
const canvasElement = document.getElementById("canvas");
const webCam = new webCam(webCamElement, "user", canvasElement);
webCam.start();
When I load the page, Chrome should ask permission to access the camera, but it doesn't. No idea why not. Setting allows browser to ask to use camera.
