-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
57 lines (46 loc) · 1.56 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
<!DOCTYPE html>
<html>
<head>
<title>WebRTC Audio</title>
<link href="styles/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="container">
<h1> Send audio clips using the data channel </h1>
<div id="notifications">
</div>
<div id="buttons">
<button id="liveBtn" disabled> Send live audio </button>
<button id="stopLiveBtn" disabled> Stop live audio </button>
<button id="recordBtn" disabled> Record </button>
<button id="stopBtn" disabled> Stop </button>
</div>
<div id="selectors">
<select id="bufferSizeSelector" onchange="changeBuffer()">
<option value="256"> 256 </option>
<option value="512"> 512 </option>
<option value="1024"> 1024 </option>
<option value="2048"> 2048 </option>
<option value="4096"> 4096 </option>
<option value="8192"> 8192 </option>
<option value="16384"> 16384 </option>
</select>
</div>
<div id="videoCanvas">
<video id="localVideo" autoplay muted></video>
<canvas id="localCanvas"></canvas>
<canvas id="remoteCanvas"></canvas>
</div>
<section class="local-clips">
<h2> Local Clips: </h2>
</section>
<section class="remote-clips">
<h2> Remote Clips: </h2>
</section>
</div>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.3/socket.io.js"></script> -->
<script src="/socket.io/socket.io.js/"></script>
<script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
<script src="js/main.js"></script>
</body>
</html>