Error on barcode scanning using custom HTML field using zxing library
Hello everyone!
I am trying to perform barcode scanning using custom HTML field, then pass the value into a text field.
In my attempt, I tried to follow the demo provided by Zxing library here and the source code can be find here .
I imported the javascript as a resources in Joget, then paste the index.html codes in the custom HTML field.
In the form builder preview in PC browser, it works fine like below:
But when I login to Joget with my mobile browser and come to this preview, it doesn't work. Inspecting with google chrome shows the below error:
The Message
Error: Can't enumerate devices, method not supported.
means the library can only be access through HTTP or HTTPS according to https://github.com/zxing-js/library/issues/225 .
Any ideas about how to do that by using custom HTML, or how can I achieve this in Joget?
Thanks!
Regards,
Lee

