another few extra qrcode tweaks
This commit is contained in:
parent
408f3ae68a
commit
b2805e135d
1 changed files with 7 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue