LazarSoft / jsqrcode

Javascript QRCode scanner
http://www.webqr.com
Apache License 2.0
3.96k stars 1.16k forks source link

can't decode multiple times #68

Closed dwikiriyadi closed 6 years ago

dwikiriyadi commented 7 years ago

i try to use jsqrcode on electron application with stream decode, but it just scan only one time, when i start the webcam again it say "qrcode.decode is not a function", i want to know how to use it for multiple times

mwj-1992 commented 6 years ago

you only need to call setwebcam() function after scan success.... i faced same issue and fix it by calling this function after scanning ..

iShubhamRaj commented 5 years ago

Hi @mwj-1992 How to know when it has successfully scanned one time? I can't figure out which event it fires or how to hook into a successful scan. Please help out here.

ayubUOL commented 2 years ago

Use setInterval to get canvas and pass it to decode function then you can achieve decode multiple times.