I want use phone and open this website but show error : "Camera access is only supported in secure context like https or localhost". How to solve this, Please!! Thank you so much
Hii, i'm very thankful for your code. But suddenly the icon gif is not appearing. Do you know how to fix that? It worked before, suddenly that icon is missing and i don't change anything.
I haven't tried it, buy you may try this html5QrCode.start({ facingMode: { exact: "environment"} }, config, qrCodeSuccessCallback); available options for facing Mode {exact: "environment"} or {exact: "user"}
Source Code Here :
youthsforum.com/2021/05/27/access-camera-and-read-qr-code-using-javascript/
Link's not working
It is a perfect solution for me, thank for your work. I wish you lots of success.😊
Not working , asset folder from github is deleted!
how to make the default camera is rear/back phone camera?
I haven't tried it, buy you may try this
html5QrCode.start({ facingMode: { exact: "environment"} }, config, qrCodeSuccessCallback);
@@LetsTryThis Hi sir. Where i should put this code? thank you
😀
Nive! It worked here. How do I make it work using react?
how to increase height of scaaner its show small size when we open it in mobile
it is working... thanks but I want to put more fields once it was read... can you teach me thanks...
I want use phone and open this website but show error : "Camera access is only supported in secure context like https or localhost". How to solve this, Please!! Thank you so much
You'll have to put it on your website
How can I fix the problem of the camera, it turns on and then turns off immediately
It works fine in localhost but in the client side camera cannot work, please give solution
how to access the value outside the function..
Do you please have for barcode
Its working great. Thanks. Except that you can't customize the view to make it more compatible with your web app's interface. Thanks anyway.
DO YOU NEED TO CUSTOMIZE THE VIEW it Can be done by editing the min.js file
let I show how to customise it
thank you, but there's little error in JS when scanning that printed on console.log
Hii, i'm very thankful for your code. But suddenly the icon gif is not appearing. Do you know how to fix that? It worked before, suddenly that icon is missing and i don't change anything.
Its work, thanks alot bro.
You're welcome!
Cannot open the source NotReadableError : Could not start video source, i have the webcam running fine and disabled all extension on nav
im kinda late but did you find a solution?
Sir scanner is not appearing on output page😢😢
QR code parse error, error = D: No MultiFormat Readers were able to detect the code.
Super..
thanks
What happen? Sir => Uncaught ReferenceError: Html5QrcodeScanner is not defined
you didn't linked the js file correctly. Did you rename the js file like that?: html5-qrcode.min.js
my laptop has no internal camera, i can only use a USB type webcam, how can i used it as a QR Code scanner in PHP
You can try it in mobile
great...
Can it default to front camera when launched on mobile?
I haven't tried it, buy you may try this
html5QrCode.start({ facingMode: { exact: "environment"} }, config, qrCodeSuccessCallback);
available options for facing Mode
{exact: "environment"}
or
{exact: "user"}
thank u so much
thank you for this effort
is there any way to make the camera work on non https / localhost web like lan servers / remote access ip? thank you
haciendole un deploy
Editing the js file is the only way i know
Are you running this as as js.node? How do you have your html on localhost
Go Live..Visual studio code provides that live server plugin. U just need to install and click on go live
Thank you so much!
You're welcome!
gracias🤪
Tqvm sir...very helpful!
thanks
Thank you so much!👏👏👏🔝🔝🔝
barcode
Result Here
How can I put the result input placeholder please help!
do you found the solution??
have u got a solution?
@@othmanekaffouh9158 No
No
@@TheBostechnology i found one
Hi Dear
I tried this,
It is not accessing my camera ,
But when i select file from local it decodes data.
Why it is not accessing the camera
maybe you have to go to chrome://flags, find insecure origin, paste your local ip, set to enable and then relaunch your browser
Can u share the GitHub link