Skip to content

Take pictures of yourself with your webcam and HTML5 and JavaScript and stuff

Notifications You must be signed in to change notification settings

carestad/webcam.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

webcam.js

navigator.getUserMedia() userfriendly.

Usage

 var success = function(video, canvas, stream) {
   video.play();
 }
 var failure = function(evt) {
   console.log("Stream failed", evt);
 }
 var notsupported = function(e) {
   console.log("Browser not supported", e);
 }
 webcam.js(success, failure, notsupported);

Check out webcam.html for a simple example.

About

Take pictures of yourself with your webcam and HTML5 and JavaScript and stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published