From a1a598db0950ad9376b1bc6b5950b42464e8244d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Gy=C3=B6rk=C3=B6s?= Date: Tue, 15 Sep 2015 20:24:45 +0200 Subject: [PATCH] Update qr-scanner.js --- qr-scanner.js | 1 + 1 file changed, 1 insertion(+) 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');