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

Mirroring the selfie mode video in QR code scanner

parent 288a99e1
No related branches found
No related tags found
No related merge requests found
Pipeline #13758 passed
...@@ -80,7 +80,7 @@ async function createVideoElement(deviceId) { ...@@ -80,7 +80,7 @@ async function createVideoElement(deviceId) {
constraint = { video: { facingMode: "environment" } }; constraint = { video: { facingMode: "environment" } };
} else if ( videoId === 'user' ) { } else if ( videoId === 'user' ) {
console.log("vid2:", videoId); console.log("vid2:", videoId);
constraint = { video: { facingMode: "user" } }; constraint = { video: { facingMode: "user", mirrored: true } };
} }
let stream = null; let stream = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment