library icon indicating copy to clipboard operation
library copied to clipboard

How to stop the Camera after Scanning

Open rneralla-equinix opened this issue 3 years ago • 4 comments
trafficstars

Hello @werthdavid, @odahcam

I am having an issue in closing the Camera after the successful scan. I tried to use import { BrowserQRCodeReader } from '@zxing/library'; but it says it got deprecated and moved to import { BrowserQRCodeReader } from '@zxing/browser' and if I use reset() function, my camera is still on after the scan.

can you please help me out with this issue

Thanks

rneralla-equinix avatar Feb 02 '22 18:02 rneralla-equinix

reset() should actually do the job. Did you use @zxing/browser instead of library? Is there any error?

werthdavid avatar Feb 03 '22 15:02 werthdavid

if the BrowserQRCodeReader from '@zxing/library' works, just use that instead. Deprecated does not mean you can't use it.

risalfajar avatar Apr 23 '22 03:04 risalfajar

Stale issue message

github-actions[bot] avatar Apr 29 '24 11:04 github-actions[bot]