diff --git a/js/transaction.ts b/js/transaction.ts index ef09ed7..c373dab 100644 --- a/js/transaction.ts +++ b/js/transaction.ts @@ -57,7 +57,11 @@ async function startCamera() { let stream: MediaStream; try { stream = await navigator.mediaDevices.getUserMedia({ - video: true, + video: { + facingMode: { + ideal: "environment", + }, + }, audio: false, }); } catch (ex) {