Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Laptop camera #47

Open
UweBradl62 opened this issue Aug 22, 2023 · 1 comment
Open

Issue with Laptop camera #47

UweBradl62 opened this issue Aug 22, 2023 · 1 comment

Comments

@UweBradl62
Copy link

I have a simple HTML page with following code:

<title>QrCodeTest</title> <script src="https://unpkg.com/html5-qrcode/html5-qrcode.min.js"></script> <style> main { display: flex; justify-content: center; align-items: center; } #reader { width: 600px; } #result { width: 600px; } </style>
<script> const scanner = new Html5QrcodeScanner('reader', { qrbox: { width: 250, heigth: 250 }, fps: 20, }); scanner.render(success, error); function success(result) { console.log("RESULT: " + result); document.getElementById('result').innerHTML = `

Erfolg!!!

${result}

`; scanner.clear(); document.getElementById('reader').remove(); } function error(err) { console.error("ERROR: " + err); } </script> --------------------------------------------------

I allow the access to my laptop camera
Unfortunately I get following error:
html5-qrcode.min.js:1 Uncaught cameraIdOrConfig is required

Any help would be much appreciated.

@UweBradl62
Copy link
Author

Solved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant