angular-qr-scanner icon indicating copy to clipboard operation
angular-qr-scanner copied to clipboard

nothing happing

Open ayoubbelkas opened this issue 9 years ago • 3 comments

i used your code in mi laravel app and when i use the demo code in my view nothing happen can you pleas give me a solution pleasssss

ayoubbelkas avatar Aug 10 '15 09:08 ayoubbelkas

I have the same problem. When i run the demo example code, the camera activates, but after nothing happens. Did you find any solution?

apo000 avatar Apr 11 '16 18:04 apo000

am also confusing this how to open camera and scan qr code.. please explain, there is no clear docs for this.

raviji avatar Nov 23 '16 12:11 raviji

Guys, the reason is the security. You must be running application on localhost with no SSL installed and browser do not allow Camera (media) access for the hosts without SSL cert.

So as far as I know there are 2 possible solutions,

  1. Disable SSL check for Media access on localhost
  2. Install self signed cert. on localhost (I tried and this worked for me)

Let me know if you find this comment helpful.

zenncoder avatar Jun 30 '17 16:06 zenncoder