mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-14 12:29:30 -07:00
Running prettier
This commit is contained in:
13
js/camera.js
13
js/camera.js
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user