another few extra qrcode tweaks

This commit is contained in:
OutCast3k 2015-03-09 12:31:52 +00:00
parent 408f3ae68a
commit b2805e135d

View file

@ -430,19 +430,19 @@ $(document).ready(function() {
}
}
});
$("#videoSource").unbind("change").change(function(){
scannerStart()
});
} else {
$("#videoSource").addClass("hidden");
}
$("#videoSource").unbind("change").change(function(){
videoStart()
});
videoStart();
scannerStart();
$("#qrcode-scanner-callback-to").html($(this).attr('forward-result'));
});
function videoStart(){
function scannerStart(){
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || false;
if(navigator.getUserMedia){
if (!!window.stream) {