-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
59 lines (49 loc) · 1.78 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="A demo of the MediaSwitcher JavaScript class">
<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1, maximum-scale=1">
<meta itemprop="description" content="MediaSwitcher">
<meta itemprop="name" content="MediaSwitcher demo">
<base target="_blank">
<title>MediaSwitcher demo</title>
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
<style>
div {
padding: 1em;
}
</style>
</head>
<body>
<div>
<video id="outputVideo" muted autoplay style="border: 1px solid black; width: 640px; height: auto;" />
</div>
<div>
<b>Video source:</b>
<select id="video_src" disabled>
<option selected value="camera">Camera</option>
<option value="video1">Video 1</option>
<option value="video2">Video 2</option>
<option value="video3">Video 3</option>
<option value="canvas">Canvas</option>
</select>
</div>
<div>
<b>Audio source:</b>
<select id="audio_src" disabled>
<option selected value="mic">Microphone</option>
<option value="video1">Video 1</option>
<option value="video2">Video 2</option>
<option value="video3">Video 3</option>
<option value="audio1">Audio 1</option>
<option value="audio2">Audio 1</option>
</select>
</div>
<div>
<button id="recordButton" disabled>Start recording</button>
</div>
</body>
<script src="js/MediaSwitcher.class.js"></script>
<script src="js/main.js" async></script>
</html>