Access WebCam using JavaScript

preview_player
Показать описание
Using getUserMedia to access webcam in a webpage using JavaScript
Full Source Code Here :
#Webcam #JavaScript
Рекомендации по теме
Комментарии
Автор

Full Source Code:


<center style="margin-top:4%;">
<h1 WebCam using JavaScript</h1>
<video id="video" autoplay>Not supported in your browser</video>
</center>

<script>

navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia;
if(navigator.getUserMedia){
navigator.getUserMedia({video:true}, handleVideo, videoError);
}

function handleVideo(stream){
=
}

function videoError(e){
alert('Something is wrong');
}
</script>

LetsTryThis
Автор

Awesome! Thanks! I tryed and i got it!

MrRenironi
Автор

that is one annoying habbit you have of refreshing everything

minotaursrock
Автор

Awesome! Thanks! I tryed and i got it!

MrRenironi
welcome to shbcf.ru