question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Qr Content Does Not Work

See original GitHub issue

Describe the bug Qr content cant work

Screenshots https://imgur.com/awmgfaG

Desktop (please complete the following information):

  • OS: [Windows]
  • Browser [Chrome]
  • Version [102.0.5005.115 (Official Build)]

Additional context i use

<html>
<head>
    <title>asdas-Qrcode Demo</title>
<body>
    <div id="qr-reader" style="width:500px"></div>
    <div id="qr-reader-results"></div>
</body>
<script src="/html5-qrcode.min.js"></script>
<script>
    function docReady(fn) {
        // see if DOM is already available
        if (document.readyState === "complete"
            || document.readyState === "interactive") {
            // call on next available tick
            setTimeout(fn, 1);
        } else {
            document.addEventListener("DOMContentLoaded", fn);
        }
    }

    docReady(function () {
        var resultContainer = document.getElementById('qr-reader-results');
        var lastResult, countResults = 0;
        function onScanSuccess(decodedText, decodedResult) {
            if (decodedText !== lastResult) {
                ++countResults;
                lastResult = decodedText;
                // Handle on success condition with the decoded message.
                console.log(`Scan result ${decodedText}`, decodedResult);
            }
        }

        var html5QrcodeScanner = new Html5QrcodeScanner(
            "qr-reader", { fps: 10, qrbox: 250 });
        html5QrcodeScanner.render(onScanSuccess);
    });
</script>
</head>
</html>

this code but i cant see anything. but; if i use this code: i can see camera (qr reader) section. i thing it is working because when i show the qr code, a border turns green but Doesn’t write qr content anywhere (the content of the picture, does not working on me) https://imgur.com/4FcrOGp

=

I can only see this right now. but when I read the qr code, I can’t see the content of the qr code like https://imgur.com/4FcrOGp

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
ROBERT-MCDOWELLcommented, Jun 28, 2022

why the heck the qrcode you are scanning is changing in real time?

0reactions
ROBERT-MCDOWELLcommented, Jun 28, 2022

so the next qrcode doesn’t show any result right? if yes, so maybe it throw an error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

9 reasons Why Your QR Code is Not Working - Beaconstac blog
There are mainly 6 reasons why a QR Code does not work: ... Too much content can cause multiple problems with QR Codes...
Read more >
12 Reasons why your QR code is not working
There are couple of reasons why a QR code does not function or scan properly. These codes are designed to be scanned by...
Read more >
6 reasons why your QR code is not working - QRCode Monkey
1. Do not invert QR Code Colors · 2. Give your QR Code colors enough contrast · 3. Don't create blurry QR Codes...
Read more >
Unable to Scan QR Code? Here's How to Fix a QR Code.
If a QR code won't scan or doesn't work, we got you. Here's a rundown of common QR code issues that leave folks...
Read more >
6 Best Ways to Fix QR Code Scanner Not Working on Android
Let's start by cleaning the camera lens if your Android phone is unable to scan QR codes properly. The camera lens of your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found