0
I am developing a php/javascript application that makes use of the camera via browser to read barcode, in the tests I did locally works well, when I put online it does not open the camera and nor ask to open, I agree that it is for security reasons, well I would like to get around this situation even if I had to ask the user’s permission... because he will be instructed to do so.
I came up with the idea of testing on a server with https that I have, to my surprise it worked, IE the problem is access on sites without https
You can install a valid certificate on a particular server?
That is to be accessed by an IP and not a domain
The code to access the camera is this:
Quaggajs An Advanced Barcode-scanner Written in Javascript
ps. There is already question regarding https on localhost and even I already make use of it, but my case is an IP (xxx.xxx.xxx.xxx) on the web and not a domain (www.dominio.com.br)