I'm developing a php / javascript application that makes use of the camera via browser to read bar code, in the tests I did locally it works in a good one, when I put it online it does not open the camera and does not ask to open, I agree it's by security issue, well I would like to get around this situation even if I had to ask the user for authorization ... 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, that is the problem is accessing sites without https
Can you install a valid certificate on a private server?
In other words, it will 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 a question about https on localhost and I even use it, but my case is an IP (xxx.xxx.xxx.xxx) on the web and not a domain (www.domain.com)