When I try to call qr.stop() like the example it throws this error:
Uncaught TypeError: this.stream.stop is not a function
Also, it will continuously keep calling the resultHandler after scanning, I'm assuming this would stop, if the qr.stop() would work.
The qr Object does contain this though:
canvasElem: canvas
stream: MediaStream
active: true
id: "U1UY73wPzsxXdV1pQXZIXuYOF0VVtmaqFqoc"
onactive: null
onaddtrack: null
onended: null
oninactive: null
onremovetrack: null
timerCapture: 21
videoConstraints: Object
videoDimensions: false
videoElem: video
No .stop method