how to disconnect the webcam in webcam.js?

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 answer