简体   繁体   中英

Webcam.js Error: No supported webcam interface found

I'm using Webcam.js in my Laravel Project for capturing image.

I have already come across from this thread ( Webcam js Error in Chrome: Could not access webcam )

I did same but still, I got this error:

Webcam.js Error: No supported webcam interface found.

Here, I'm providing my project link which is loading over HTTPs.

My code

            Webcam.set({
                width: 320,
                height: 240,
                image_format: 'jpeg',
                jpeg_quality: 90
            });
            Webcam.attach( '#my_camera' );
        }

If anyone has any solution please provide. I will appreciate your response.

When you are using Webcam make sure you have deployed the application in an SSL based server. Without SSL Webcam won't work. I have no idea about the WebCamJs but this should internally call getUserMedia() which works only over HTTPS or localhost. It will be great if you can provide more insight into the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM