fix: podpora zarizeni, ktere nemaji video
This commit is contained in:
parent
e0dc13ccdc
commit
8303276819
|
@ -45,7 +45,7 @@ whenReady(function () {
|
|||
//ExtensionData.vidStatus = 'off';
|
||||
video.pause();
|
||||
video.src = "";
|
||||
localstream.getTracks()[0].stop();
|
||||
if (localstream) localstream.getTracks()[0].stop();
|
||||
//console.log("Vid off");
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,11 @@ whenReady(function () {
|
|||
video.setAttribute("playsinline", true); // required to tell iOS safari we don't want fullscreen
|
||||
video.play();
|
||||
requestAnimationFrame(tick);
|
||||
}).catch(function () {
|
||||
gebi('app').style.display = 'block';
|
||||
gebi('qrscanner').style.display = 'none';
|
||||
gebi('qrcode').focus();
|
||||
videoOff();
|
||||
});
|
||||
|
||||
event.preventDefault();
|
||||
|
|
Loading…
Reference in New Issue