vídeo de la etiqueta html
<!DOCTYPE html>
<html>
<body>
<h1>Video TITLE</h1>
<video width="320" height="240" controls>
<source src="Video Link">
</video>
</body>
</html>
javascript fuente de vídeo
<video autoplay="true" id="video"><\video>
<script>
video = document.getElementById("video");
if (navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices
.getUserMedia({ video: true })
.then(function(stream) {
video.srcObject = stream;
})
.catch(function(error) {
console.log("Something went wrong!");
});
}
<\script>