jhuckaby / webcamjs

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

Webcam.reset() is not working #244

Open amirvenus opened 7 years ago

amirvenus commented 7 years ago

Hi, I am struggling to stop the webcam.. I have placed Webcam.reset() everywhere but it looks like it's being ignored all together

gggg990 commented 6 years ago

I have the same issue. Can someone help us with the code:

`reset: function() { // shutdown camera, reset to potentially attach again if (this.userMedia) { try { this.stream.stop(); } catch (e) {;} delete this.stream; delete this.video; }

    this.container.innerHTML = '';
    delete this.container;

    this.loaded = false;
    this.live = false;
},`