instascan
instascan copied to clipboard
Issue running demo on Chrome locally
I downloaded the demo HTML along with the instascan.min.js
file, and opened the webpage in Chrome. It asks for permissions for my webcam, but then nothing happens. Im getting this error in the console:
Invalid asm.js: instascan.min.js:18
Type mismatch in assignment: test.html:1
Im running locally just to test functionality without having to use HTTPS. Is anyone else able to do this?
I also tried https://github.com/dwa012/html5-qrcode and experienced the same issue.
Oddly enough, the demo page works for instascan when I go to https://schmich.github.io/instascan/.
Ditto - I have this same problem as well.
I was never able to solve the issue. However I did get it working using a self signed SSL cert. Definitely not the same as testing locally without a cert at all, but it at least is a temporary workaround.
I had no problem running a simple http server in the local folder:
$ cd path/to/folder/
$ python3 -m http.server 300
Go to http://localhost:3000
Copied the one from the demo site, and it worked.
Same problem here, also causes CPU 100%
Same problem :/
Same. I have a self-signed certificate, if that's relevant -- and have a root CA trusted by my mac's security settings. Instascan will detect a QR code perfectly fine, but the video preview does not work.
I think this was a uglifyJS issue, building instascan.min.js new with gulp release
seems to fix this.
I have the same issue along with an Uncaught OverconstrainedError in a Promise. I'm running 1.0.0 minified which I downloaded from this repo, and I'm running the demo HTML page. I am using a self-signed certificate and connecting via HTTPS. Any insights? TIA
same problem on chrome
same issue here
Just add these javascript in this order and you'll get it running
Same issue here. Downloading the js from the example fixed the problem.