-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
113 lines (95 loc) · 3.68 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>
<head>
<title>WebRTC Audio</title>
<link href="styles/main.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="grid">
<div id="header">
<img class="logo" src="media/uninett.svg" height="50px" />
<h1> Send audio and video using only the WebRTC data channel </h1>
<div id="notifications">
<p id="dataChannelNotification" class="notifications"> Data Channel not yet created. Waiting for other peer. </p>
</div>
</div>
<div id="buttons">
<h3> Audio and video controls: </h3>
<br />
<div class="buttonSet">
<button id="videoBtn" class="btn" disabled> Send live video</button>
<button id="stopVideoBtn" class="btn" disabled=""> Stop live video </button>
</div>
<div class="buttonSet">
<button id="liveBtn" class="btn" disabled> Send live audio </button>
<button id="stopLiveBtn" class="btn" disabled> Stop live audio </button>
</div>
<div class="buttonSet">
<button id="recordBtn" class="btn" disabled> Record </button>
<button id="stopBtn" class="btn" disabled> Stop </button>
</div>
</div>
<div id="selectors">
<h3> Adjust your quality settings: </h3>
<div id="bufferSelector">
<p> Select the desired audio buffer size: </p>
<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="compressionContainer">
<p> Input the jpeg compression quality (Higher is better): </p>
<input id="compressionSlider" class="slider" type="range" min="1" max="100" value="92" oninput="changeCompression(this.value)"/>
<span id="compressionNumber"> 92 </span>
</div>
<div id="scaleContainer">
<p> Input the scale quality (Higher is better): </p>
<input id="scaleSlider" class="slider" type="range" min="1" max="100" value="100" oninput="changeScaleView(this.value)" onchange="changeScaleInput(this.value)" disabled/>
<span id="scaleNumber">100</span>
</div>
<div id="frameperiodContainer">
<p> Input the frame period: </p>
<input id="frameperiodSlider" class="slider" type="range" min="1" max="500" value="30" oninput="changeFrameperiod(this.value)"/>
<span id="frameperiodNumber">30</span>
</div>
</div>
<div id="videoContainer">
<video id="localVideo" autoplay muted></video>
<canvas id="localCanvas"></canvas>
<canvas id="remoteCanvas"></canvas>
</div>
<div id="bitRate">
<div id="bitRateSent">
<p> Bitrate sent: </p>
<p id="bytesSent"> </p>
</div>
<div id="bitRateReceived">
<p> Bitrate Received: </p>
<p id="bytesReceived"> </p>
</div>
</div>
<div id="clipsContainer">
<section class="local-clips">
<h2> Local Clips: </h2>
</section>
<section class="remote-clips">
<h2> Remote Clips: </h2>
</section>
</div>
<div id="footer">
<img class="logo" src="media/uninett.svg" height="40px" />
<p> Summer project 2017 </p>
</div>
</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>