Using the getUserMedia () method, we can get the audio and video stream in codec format through a microphone and a webcam, respectively.
After converting this codec format to a custom video URL, it will be attached to the source tag under the video element to make a complete video.
So, the video that we get from getUserMedia () api looks like another regular video, for example: -
<video width="320" height="240" controls> <source src="http://www.w3schools.com/tags/movie.mp4" type="video/mp4"> <source src="http://www.w3schools.com/tags/movie.ogg" type="video/ogg"> Your browser does not support the video tag. </video>
http://jsfiddle.net/ez3pA/2/
So, you can do different things around the video and the canvas. We can get good examples of this at http://html5doctor.com/video-canvas-magic/
source share