diff --git a/qr-scanner.js b/qr-scanner.js index 6f3a309..9144df4 100644 --- a/qr-scanner.js +++ b/qr-scanner.js @@ -25,6 +25,7 @@ angular.module('qrScanner', ["ng"]).directive('qrScanner', ['$interval', '$windo var video = $window.document.createElement('video'); video.setAttribute('width', width); video.setAttribute('height', height); + video.setAttribute('autoplay', ''); video.setAttribute('style', '-moz-transform:rotateY(-180deg);-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg);'); var canvas = $window.document.createElement('canvas'); canvas.setAttribute('id', 'qr-canvas');