I'm trying to set up a QR code generating and scanning system for a local event, but I'm facing some issues getting the scanner to work. I'm using the html5-qrcode library, and after granting camera permissions, my PC just gets stuck on "Launching Camera...". I have decent experience with Python and C++, but I'm a bit lost when it comes to HTML and JavaScript. I'm following a guide I found online, but I'm not sure where I'm going wrong. Any suggestions on this matter or tips for my project would be greatly appreciated!
2 Answers
Have you tried running the demo of the scanner? It can be helpful to see if your setup is right. I’ve been using a different QRCode scanner that requires a hefty WASM file but yields great results. Here’s the link: github.com/antfu/qr-scanner-wechat. Testing might give you some clarity!
First off, does your PC actually have a camera? It's something worth checking. Sometimes, browser settings can be a bit finicky. If you’ve confirmed that your camera works (like you mentioned that Chrome can access it), then it might be an issue with the html5-qrcode setup. Let me know if that's the case!
Yes, it does have a camera, and I can also use my phone camera via Phone Link. I confirmed this since Chrome shows the camera footage when I allow permissions. But after granting permission, the camera icon disappears and it just gets stuck.

Yes, I tried the demo and it worked fine. I'll give that other scanner a shot as well!