LazarSoft / jsqrcode

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

Here is a tutorial on how to use this library #87

Open dvergeylen opened 5 years ago

dvergeylen commented 5 years ago

Hi,

I've just figured out how to use that library. I made a (simplified) tutorial out of it here (gist).

Hope this helps!

kibagami-jubei commented 5 years ago

Thanks!

To use this on a mobile website, you have to use a certificate, correct?

dvergeylen commented 5 years ago

Correct in Chrome 47+, where MediaDevices is restricted to secure contexts only, see this doc.

shiwenna commented 5 years ago

I have a demo here

ErSoul commented 4 years ago

Hi, this isn't working for me. The video tag shows nothing, though the permission has been granted.

dvergeylen commented 4 years ago

Hi @ErSoul, would you mind giving a bit more info to reproduce your problem?

ErSoul commented 4 years ago

Hi @dvergeylen ! My bad, it seems that my smartphone had some issues at the moment of using the camera, and that's why I had no video.

Everything is working fine now. Thanks!

PD: this should be in the official readme.