@@ -107,8 +107,9 @@ export default {
video: {
facingMode: "user",
aspectRatio: 4 / 3,
- // width: 400,
- // height: this.showRecognizeButton ? 300 : 250
+ resizeMode: "crop-and-scale",
+ width: 400,
+ height: 300,
},
});
if (stream) {
@@ -858,8 +858,9 @@ export default {
const stream = await navigator.mediaDevices.getUserMedia({