diff --git a/webcam.js b/webcam.js index 4b5b8f1..8ea9885 100644 --- a/webcam.js +++ b/webcam.js @@ -179,7 +179,7 @@ var Webcam = { this.unflip(); if (this.userMedia) { - try { this.stream.stop(); } catch (e) {;} + try { this.stream.getTracks()[0].stop(); } catch (e) {;} delete this.stream; delete this.video; }