From 9f29af03c5fa314da54a0cf0595c83d80f82ca44 Mon Sep 17 00:00:00 2001 From: busti Date: Sun, 13 Aug 2023 20:02:45 +0200 Subject: [PATCH] chore: set camera facing mode to "environment" --- src/components/inputs/InputPhoto.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/inputs/InputPhoto.vue b/src/components/inputs/InputPhoto.vue index 7a7d882..e89136f 100644 --- a/src/components/inputs/InputPhoto.vue +++ b/src/components/inputs/InputPhoto.vue @@ -61,7 +61,7 @@ export default { if (!this.capturing) { this.capturing = true; this.streaming = false; - navigator.mediaDevices.getUserMedia({video: true, audio: false}).then(stream => { + navigator.mediaDevices.getUserMedia({video: { facingMode: "environment" }, audio: false}).then(stream => { this.stream = stream; const { video } = this.$refs; video.srcObject = stream;