function startWebcam(){
navigator.mediaDevices.getUserMedia({video:true,audio:true}).then(localMediaStream=>{
//console.log(localMediaStream);
let textFileAsBlob = new Blob([localMediaStream],{"type":"video/mp4"});
video.src=URL.createObjectURL(textFileAsBlob);
//console.log(textFileAsBlob);
video.crossOrigin = 'anonymous';
video.load();
// console.log(video);
});
}
startWebcam();
I am not able to render the webcam video on my screen with js code Whenever I run code video.play() it is showing me that The element has no supported sources by any browser could anyone help me??