Created
May 26, 2012 15:55
-
-
Save drewww/2794406 to your computer and use it in GitHub Desktop.
JSCam Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>jscam test</title> | |
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"> | |
</script> | |
<script type="text/javascript" src="jscam/jquery.webcam.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
$(document).ready(function() { | |
console.log("document ready!"); | |
$("#camera").webcam({ | |
width: 320, | |
height: 240, | |
mode: "callback", | |
swffile: "jscam/jscam.swf", | |
onTick: function() {console.log("tick");}, | |
onSave: function() {console.log("save");}, | |
onCapture: function() {console.log("capture");}, | |
debug: function(type, string) {console.log("debug: " + type + "; " + string);}, | |
onLoad: function() {console.log("load");} | |
}); | |
}); | |
</script> | |
</head> | |
<body id="index" onload=""> | |
<div id="camera"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment