chore: set camera facing mode to "environment"

This commit is contained in:
busti 2023-08-13 20:02:45 +02:00
parent af4e7dc241
commit 9f29af03c5

View file

@ -61,7 +61,7 @@ export default {
if (!this.capturing) { if (!this.capturing) {
this.capturing = true; this.capturing = true;
this.streaming = false; 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; this.stream = stream;
const { video } = this.$refs; const { video } = this.$refs;
video.srcObject = stream; video.srcObject = stream;