Skip to content

Commit

Permalink
remove propriedade ideal da captura do video
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroluizresende committed Dec 20, 2023
1 parent 12c898b commit ae0bb50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Camera.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function Camera({ setOpenCamera, setCurrentImage }) {
}
navigator.mediaDevices.getUserMedia({
video: {
width: { ideal: 2160 },
height: { ideal: 3840 },
width: 2160,
height: 3840,
facingMode: switchCamera ? 'user' : 'environment',
},
})
Expand Down

0 comments on commit ae0bb50

Please sign in to comment.