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

Fix mobile init camera - qr code scanner

parent 0a85fbef
No related branches found
No related tags found
No related merge requests found
Pipeline #13296 passed
......@@ -102,7 +102,9 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
that._('#videoSource').appendChild(opt);
}
console.log(devices_map);
that.activeCamera = devices_map.keys().next().value;
that.activeCamera = Array.from(devices_map)[0][0];
})
.catch(function (err) {
console.log(err.name + ": " + err.message);
......@@ -124,7 +126,7 @@ export class QrCodeScanner extends ScopedElementsMixin(DBPLitElement) {
}
}
this._log(`${results.length} results found`);
that.activeCamera = devices_map.keys().next().value;
that.activeCamera =Array.from(devices_map)[0][0];
resolve(results);
}
MediaStreamTrack.getSources(callback);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment