Skip to content

Commit

Permalink
altera resolução da camera para 1080x1920
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroluizresende committed Dec 20, 2023
1 parent 170f736 commit 6dff8c0
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 @@ -12,8 +12,8 @@ function Camera({ setOpenCamera, setCurrentImage }) {
const getVideo = () => {
navigator.mediaDevices.getUserMedia({
video: {
width: 2160,
height: 840,
width: 1080,
height: 1920,
facingMode: switchCamera ? 'user' : 'environment',
},

Expand Down

0 comments on commit 6dff8c0

Please sign in to comment.