-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathindex.html
67 lines (60 loc) · 3.66 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="chrome=1">
<title>Camvas by cbrandolino</title>
<link rel="stylesheet" href="stylesheets/styles.min.css">
<script src="javascripts/scale.fix.js"></script>
<script src="javascripts/camvas.js"></script>
<script src="javascripts/camvas_example.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="wrapper">
<header>
<h1 class="header">Camvas</h1>
<p class="header">Small, annotated library to stream webcam content to a canvas element</p>
<ul>
<li class="download"><a class="buttons" href="https://github.com/cbrandolino/camvas/zipball/master">Download ZIP</a></li>
<li class="download"><a class="buttons" href="https://github.com/cbrandolino/camvas/tarball/master">Download TAR</a></li>
<li><a class="buttons github" href="https://github.com/cbrandolino/camvas">View On GitHub</a></li>
</ul>
<p class="header">This project is maintained by <a class="header name" href="http://cbrandolino.github.com">cbrandolino</a>, which just got
a twitter account: <a href="http://twitter.com/cbrandolino">@cbrandolino</a></p>
</header>
<section>
<h3>Library and anotated code</h3>
<p>If you can't wait to experiment with the endless possibilities that using webcam streams with canvas can give to developers,
the <a href="https://github.com/cbrandolino/camvas/tree/master/javascripts">annotated source code</a>
is just waiting for you - take a look at the example usage, then <a href="javascripts/camvas.js">download the library</a> and have a blast!</p>
<h3>Live demo</h3>
<p>This demo only works on the most recent versions of chrome, firefox (Aurora/nightly) and safari (possibly explorer too, but I would not vouch for it). Opera
should really try to implement a requestAnimationFrame, instead, in particular now that they support WebGL.</p>
<p>Some browsers will ask you for permissions to use your webcam: accept it in order to see the demo in action: feel free to check the code before activating it. Spoiler: nothing will be sent anywhere, it's between you and your browser.</p>
<p><strong>Note for chrome 12 users:</strong> you might experience some performance issues. If you want to solve them (and feel adventurous), take a look at <a href="chrome://flags/">chrome://flags</a> and get freaky checking all things 2d- and video- acceleration</p>
<canvas width=680 height=240></canvas>
<h3>More info</h3>
<p>Here are some useful resources to learn more about HTML5 video, canvas, WebRTC and how they work together</p>
<ul>
<li>
<a href="http://www.html5rocks.com/en/tutorials/getusermedia/intro/">Capturing audio and video in HTML5</a> (HTML5 rocks)
</li>
<li>
<a href="http://answers.oreilly.com/topic/2896-how-to-display-a-video-on-html5-canvas/">Display video on HTML5 canvas</a> (O'Reilly media, slightly outdated)
</li>
<li>
<a href="http://neave.com/webcam/html5/">A great example of the canvas + WebRTC potential</a> (neave.com)
</li>
</ul>
</section>
<footer>
<p><small>Hosted on <a href="https://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
</footer>
</div>
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
</body>
</html>