As another issue mentions this reader once initialized does not stop, it causes a memory leak and high battery consumption on mobile.
controls.stop() seems to do nothing and there is no controls.play() to resume.
There is also no codeReader.stop() or .destroy() or .pause() or .play()
codeReader = new BrowserQRCodeReader(undefined, {
delayBetweenScanAttempts: scanDelay
});
// this would be amazing
codeReader.stop()
codeReader.play()
codeReader.destroy()
as noted by others this does not work but even if it did there is no way to resume:
As another issue mentions this reader once initialized does not stop, it causes a memory leak and high battery consumption on mobile.
controls.stop()
seems to do nothing and there is nocontrols.play()
to resume.There is also no
codeReader.stop()
or.destroy()
or.pause()
or.play()
as noted by others this does not work but even if it did there is no way to resume: