WELCOME TO MY WEB
ACTIVE YOU WEBCAM

Before starting with the reading of the code I warn you that I did not work, but the button yes, and known how to activate the webcam without skipping any type of error but if and descubirto the meaning of WebkitGetUserMedia that you will see in the code because it is a espe CificaciĆ³n with which we will be able to capture both the video and the audio of our webcam, which previously opened authorized to work now I'll put an example and below all the links to see two results of two types of code that and tried to CER operate.

pd: In the following code do not appear < > because if I had left opened detected the code and did not open it could teach so it would be important to put. In the middle of the code there are small explanations that I hope hos will help.

html

head

meta charset="UTF-8">

/head

body

div

video id="live" width="320" height="240" autoplay> /div

script

//In the line above you want to save the video object in a variable called:

video = document.getElementById("live")

//This will access the webcam device to show the video

navigator.webkitGetUserMedia("video",function(stream))

video.src = webkitURL.createObjectURL(stream);

//We obtain the video source of our Eitqueta video to show it

function(err)

{console.log("Unable to get video stream!");

//This is in case we get any possible mistakes when doing this.

/script

/body

/html

To activate the third example apart from activating the camera you have to use a libraries and the node

her left a picture of where and caught the example