RonnyWeiss / APEX-QR-Code-Scanner

This Region Plug-in is used to scan QR Codes. If any string has been detected an APEX Item can be set, Dynamic Action can be fired or JavaScript can be executed. Login for Demo is: user-demo / 123456@
MIT License
27 stars 11 forks source link

Can't scan multiple code ? #6

Closed ThomasCarltonInPerson closed 4 years ago

ThomasCarltonInPerson commented 4 years ago

Hi,

Thank you for your awesome plugin.

I'm trying to scan several codes , but the plugin scans only the first one. The other ones are detected in the video streaming but the scan trigger is not working.

After each scan I'm running the following commands :

alert(scannedValue); $("#scannerregion").trigger("scannerPause"); $("#scannerregion").trigger("scannerPlay"); $("#scannerregion").trigger("resetValue");

This code shows the scanned value only once. No JS error is raised.

Am I missing something please ?

thanks. Cheerss,

RonnyWeiss commented 4 years ago

Hello

Ok I tried it in my sample app and everything is working? why do you pause the scanner? when you want to rescan the same code then you just need to trigger ResetValue. My thought where like that:

What is your use case?

kind regards

Ronny

ThomasCarltonInPerson commented 4 years ago

I have tried several things and come up with the following conclusion :

Here is an example with both cases : https://apex.oracle.com/pls/apex/tataf12906/r/scanner-test/scanner

Wokspace : tataf12906 Email : tataf12906@relrb.com Password : R0ONq6pC18hUrX7

My problem is solved now since I'm waiting 200ms before reseting the scanner. But I'm putting this here in case some gets the same problem.

Thanks again for your awesome plugin :) !

RonnyWeiss commented 4 years ago

Did you move the qer code away from scanner or is it always in front of the camera?

RonnyWeiss commented 4 years ago

No reaction so I will close issues