how to disconnect the webcam in webcam.js?

2.6k views Asked by At

Does anyone know how can I disconnect the webcam in webcam.js?

I'm using Webcam.attach(webcam.js) to connect to the webcam. However, I try to use webcam.reset() to disconnect the webcam and it's seem not working. The webcam is still on and the tab of the browser show webcam is connected (red dot showing on the tab).

Does anyone know how can I disconnect it in webcam.js?

1

There are 1 answers

1
FBlade On BEST ANSWER

I've tried Webcam.reset( '#my_camera' ) with no problem.
Tested on: https://pixlcore.com/demos/webcamjs/demos/basic.html

Did you check for console errors?