Skip to content
Snippets Groups Projects
Commit 82f58077 authored by Steinwender, Tamara's avatar Steinwender, Tamara
Browse files

Clean code

parent ef2bf975
No related branches found
No related tags found
No related merge requests found
Pipeline #13922 passed
......@@ -92,9 +92,6 @@ async function createVideoElement(deviceId) {
if (stream !== null) {
let video = document.createElement("video");
video.srcObject = stream;
video.setAttribute('autoplay', '');
video.setAttribute('muted', '');
video.setAttribute('playsinline', '');
return video;
}
......@@ -335,9 +332,7 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
if (video !== null) {
video.setAttribute("playsinline", true); // required to tell iOS safari we don't want fullscreen
video.onloadedmetadata = function(e){
video.play();
};
video.play();
this._videoRunning = true;
console.assert(this._requestID === null);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment