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 {
|
} else {
|
||||||
$("#videoSource").addClass("hidden");
|
$("#videoSource").addClass("hidden");
|
||||||
}
|
}
|
||||||
|
scannerStart();
|
||||||
$("#videoSource").unbind("change").change(function(){
|
|
||||||
videoStart()
|
|
||||||
});
|
|
||||||
|
|
||||||
videoStart();
|
|
||||||
$("#qrcode-scanner-callback-to").html($(this).attr('forward-result'));
|
$("#qrcode-scanner-callback-to").html($(this).attr('forward-result'));
|
||||||
});
|
});
|
||||||
|
|
||||||
function videoStart(){
|
function scannerStart(){
|
||||||
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || false;
|
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || false;
|
||||||
if(navigator.getUserMedia){
|
if(navigator.getUserMedia){
|
||||||
if (!!window.stream) {
|
if (!!window.stream) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue