forked from mozdevs/MediaRecorder-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget-canvas-stream.html
More file actions
25 lines (24 loc) · 832 Bytes
/
get-canvas-stream.html
File metadata and controls
25 lines (24 loc) · 832 Bytes
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
<!doctype html>
<head>
<title>MediaRecorder examples - Get a video stream from canvas</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css" type="text/css">
<script src="get-canvas-stream.js"></script>
</head>
<body>
<header>
<h1><a href="index.html">MediaRecorder examples</a></h1>
<p>Get a video stream from a <code>canvas</code> element - the video displays what happens on the canvas</p>
</header>
<main class="row">
<figure>
<canvas id="canvas" width="320" height="320"></canvas><br>
<caption>This is a <code>canvas</code> element</caption>
</figure>
<figure>
<video id="video"></video><br>
<caption>This is a <code>video</code> element</caption>
</figure>
</main>
</body>