From 5193dd028a45368646b05ccacafdcb61b2d12161 Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Sun, 1 May 2022 15:01:00 +0100 Subject: [PATCH] lukegbcom: ee-qrcode should use back camera by default --- web/lukegbcom/pages/tools/ee-qrcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/lukegbcom/pages/tools/ee-qrcode.js b/web/lukegbcom/pages/tools/ee-qrcode.js index 1db0e91568..28926d1c8f 100644 --- a/web/lukegbcom/pages/tools/ee-qrcode.js +++ b/web/lukegbcom/pages/tools/ee-qrcode.js @@ -18,7 +18,7 @@ async function startCapture(video, canvas, captureType) { if (captureType === 'screen') captureStream = await navigator.mediaDevices.getDisplayMedia({ audio: false, video: true }) else - captureStream = await navigator.mediaDevices.getUserMedia({ audio: false, video: true }) + captureStream = await navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: 'environment' } }) } catch (e) { alert(`Failed to start screen capture: ${e}`) return