jhuckaby / webcamjs

HTML5 Webcam Image Capture Library with Flash Fallback
MIT License
2.5k stars 1.11k forks source link

Webcam.off does not seem to work. #308

Closed makc closed 4 years ago

makc commented 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.

makc commented 4 years ago

ah shit. I just realized that this is as expected while writing this 🤦‍♂