<video id="video1" width="640" height="480" autoplay="1" ></video>
JavaScript
$(()=>{
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || window.navigator.mozGetUserMedia;
let video1 = document.getElementById('video1');
navigator.mediaDevices.getUserMedia({video: true, audio: false})
.then(function (stream) {
video1.srcObject = stream;
}).catch(function (error) {
console.error('エラー', error);
return;
});
});