You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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=newBrowserQRCodeReader(undefined,{delayBetweenScanAttempts: scanDelay});// this would be amazingcodeReader.stop()codeReader.play()codeReader.destroy()
as noted by others this does not work but even if it did there is no way to resume:
codeReader.decodeFromConstraints({video: constraint},videoRef,(result)=>{console.log(result?.getText())}).then((controls: IScannerControls)=>{// does nothingcontrols.stop()})
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: