schmich / instascan

HTML5 QR code scanner using your webcam
https://schmich.github.io/instascan/
MIT License
2.97k stars 868 forks source link

Issue running demo on Chrome locally #102

Open bcwik9 opened 7 years ago

bcwik9 commented 7 years ago

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?

bcwik9 commented 7 years ago

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/.

iamunknown2 commented 6 years ago

Ditto - I have this same problem as well.

bcwik9 commented 6 years ago

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.

leplatrem commented 6 years ago

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

dhcmega commented 6 years ago

Copied the one from the demo site, and it worked.

stepri commented 6 years ago

Same problem here, also causes CPU 100%

youneskasri commented 6 years ago

Same problem :/

husani commented 6 years ago

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.

chris-gunawardena commented 6 years ago

I think this was a uglifyJS issue, building instascan.min.js new with gulp release seems to fix this.

cxa-croper commented 4 years ago

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

exqlnet commented 3 years ago

same problem on chrome

myusufid commented 3 years ago

same issue here

Ferdanielhg commented 3 years ago

Just add these javascript in this order and you'll get it running

mrfrasier commented 1 year ago

Same issue here. Downloading the js from the example fixed the problem.