Closed makc closed 4 years ago
var onError = function (error) { Webcam.off ('error', onError); // code X here }; Webcam.on ('error', onError);
followed by attach, then reset, then another attach - at this point if you deny the camera, code X runs, as if Webcam.off had no effect.
ah shit. I just realized that this is as expected while writing this 🤦♂
followed by attach, then reset, then another attach - at this point if you deny the camera, code X runs, as if Webcam.off had no effect.