chore: set camera facing mode to "environment"
This commit is contained in:
parent
af4e7dc241
commit
9f29af03c5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue