Learn to access the web camera in JS using getUserMedia. It will be useful when you develop applications based on web camera.
Website: http://samsolomonprabu.com/
Source file: https://drive.google.com/open?id=0B6RD52SkI2-cVk85Yk9iQTVMWWs
Original source
18 responses to “Accessing the Web Camera in JS | JavaScript Tutorials | Web Development Tutorials”
Thank you! Good job!
how to make it work in chrome browser what steps do i need to take in order to do that
Thank you for this wonderful video. My doubt is how can I access web camera in less secured protocol?? Like HTTP which is less secured.
Thank you! This helped me a lot (-:
When I open it, it asks me for the allowance. However, Video doesn't show up. How can I solve this? I just copied and pasted your code.
how to save the image file name into the database?
how to mAKE THIS WORK IN IE
Like a Boss!
thank you sir
Hello Sir! I need your help I watched your this video and I used this code but sir when I run file on Mozilla & google chrome showing Allow or Block I click on Allow button but video is not showing. Give me some suggests
Thank you!
It works for me when I put it in localhost, but when I put it on my server, I get this error: PermissionDeniedError, and does not display the camera
hello sir.it is so helpful.sir will u provide the tutorial about sliding the image in different different style(by clicking button as well as automatic slider) using html css and js(not use of jquery)
not like that sir i have to record a video with programming
Dear sir
how can i record a video
Thanks for this code man everything goes perfect!
btw…
.. Hope this helps!:
//***********************************************************
var video;
var canvas;
var context;
$(function () {
video = document.getElementById('video');
canvas = document.getElementById('canvas');
context = canvas.getContext('2d');
});
//***********************************************************
wow thank you bro… love you
your teaching is awesome with source code too.
sir what is the reason if i copy code it works javascripts but when i try by own it won't show javascript in my pc where i javascript.enabled computer can u please tell me the reason. thankyou