diff --git a/src/qcode-decoder.js b/src/qcode-decoder.js index 9d3d20b..50ef7de 100644 --- a/src/qcode-decoder.js +++ b/src/qcode-decoder.js @@ -178,7 +178,7 @@ QCodeDecoder.prototype.decodeFromImage = function (img, cb) { */ QCodeDecoder.prototype.stop = function() { if (this.stream) { - this.stream.stop(); + this.stream.getTracks()[0].stop(); this.stream = undefined; }