zxing-js / library

Multi-format 1D/2D barcode image processing library, usable in JavaScript ecosystem.
https://zxing-js.github.io/library/
Apache License 2.0
2.5k stars 546 forks source link

How to stop the Camera after Scanning #502

Open rneralla-equinix opened 2 years ago

rneralla-equinix commented 2 years ago

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

werthdavid commented 2 years ago

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

risalfajar commented 2 years ago

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

github-actions[bot] commented 6 months ago

Stale issue message