반응형 19일차1 [JavaScript 30일 챌린지] : 19일차 function getVideo() { navigator.mediaDevices.getUserMedia({ video: true, audio: false }) .then(localMediaStream => { console.log(localMediaStream); video.srcObject = localMediaStream; video.play(); }) .catch(err => { console.error(`OH NO!!!`, err); }); } function paintToCanvas() { const width =video.videoWidth; const height =video.videoHeight; canvas.width = width; canvas.height = height; return.. 2022. 2. 15. 이전 1 다음 반응형