This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
about constraints width and height #31
Open
Description
to be able to set the width and height of video area, I had to change the code:
constraints: {
width: this.readerSize.width ,
height: this.readerSize.height ,
},
I wonder why min is used here:
constraints: {
width: { min: this.readerSize.width },
height: { min: this.readerSize.height },
facingMode: 'environment',
aspectRatio: { min: 1, max: 2 },
},
Metadata
Metadata
Assignees
Labels
No labels