Running prettier

This commit is contained in:
Rezmason
2022-08-07 19:17:59 -07:00
parent a0c1f22fd1
commit 6aa025870c
3 changed files with 12 additions and 10 deletions

View File

@@ -14,12 +14,15 @@ const drawToCanvas = () => {
const setupCamera = async () => {
try {
const stream = await navigator.mediaDevices.getUserMedia({video: {
width: { min: 800, ideal: 1280 },
frameRate: { ideal: 60 }
}, audio: false});
const stream = await navigator.mediaDevices.getUserMedia({
video: {
width: { min: 800, ideal: 1280 },
frameRate: { ideal: 60 },
},
audio: false,
});
const videoTrack = stream.getVideoTracks()[0];
const {width, height} = videoTrack.getSettings();
const { width, height } = videoTrack.getSettings();
video.width = width;
video.height = height;