Skip to content

Commit

Permalink
Set the property autoplay to activate the video on chrome for anroid …
Browse files Browse the repository at this point in the history
…(maybe others)
  • Loading branch information
maximeborges committed Jul 2, 2015
1 parent 64768c2 commit d52fd06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qr-scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ angular.module('qrScanner', ["ng"]).directive('qrScanner', ['$interval', '$windo
var width = attrs.width || 250;

var video = $window.document.createElement('video');
video.setAttribute('autoplay', true);
video.setAttribute('width', width);
video.setAttribute('height', height);
video.setAttribute('style', '-moz-transform:rotateY(-180deg);-webkit-transform:rotateY(-180deg);transform:rotateY(-180deg);');
Expand Down

0 comments on commit d52fd06

Please sign in to comment.