QR Code ZXING reader in HTML - WEBQR

Asked

Viewed 641 times

1

I am trying to implement the reader in my web application as well as in the site "webqr.com", I copied the complete site from index.html to scripts(2). until then all right I access the server through the localhost and works as in the following image inserir a descrição da imagem aqui


but when I try to access through my IP or some domain it does not work: inserir a descrição da imagem aqui

note that the use of the camera was not requested. which may be interfering with the operation?

  • Have you checked the console? Returns some|alert|exception error?

  • @Lauromoraes thanks for the tip, I found the bug. I will publish

1 answer

1

after opening the browser console found the error

inserir a descrição da imagem aqui

translating error, it needs HTTPS certificate to receive user media(webcamming)

  • 1

    you can use a self-signed certificate on localhost... if it is of type "wildcard" in Windows Chrome version 57.0.2987.133 and below does not issue an alert as it reads the certificate from the local repository (assuming it is installed in the "Root Certification Authority Repository) while Firefox, Opera and others will throw error

Browser other questions tagged

You are not signed in. Login or sign up in order to post.