sembrestels / angular-qr-scanner

Angular directive for QR Scanner
http://sembrestels.github.io/angular-qr-scanner/
MIT License
88 stars 80 forks source link

Issues on Android #5

Open maxcbc opened 9 years ago

maxcbc commented 9 years ago

Hey,

I'm having issues on chrome on Android with this qr code scanner, have tried it on Android 4.4 on a Samsung tab 10.1 and on 5.1 on a Moto G, no joy.

When you give access to the camera on the device, the reader takes a still shot and freezes on that first frame, it then passes that first shot through the qr code reader every time (every $interval). I've tried putting a qr code infront of the device camera for that first frame and it works ok, is detecting the code. It does it every interval.

I've tried this with the html5 scanner you have angularfied, and i get the same issue, so its nothing you have done. Just thought i'd give you the heads up

maxcbc commented 9 years ago

GOOD NEWS

solved the issue,

just add the following line in your qrscanner.js

video.setAttribute('autoplay','');

rubenswebdev commented 9 years ago

thnks for this!