-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
189 lines (187 loc) · 7.17 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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="libs/jquery-2.1.1.min.js"></script>
<script src="libs/strophe/strophe.js"></script>
<script src="libs/strophe/strophe.disco.min.js?v=1"></script>
<link rel="stylesheet" href="libs/bootstrap.min.css">
<script src="libs/lib-jitsi-meet.min.js"></script>
<script src="script.js" ></script>
<style type="text/css">
body {
padding: 6px;
background-color: black;
color: #eeeeee;
}
input, button, select {
background-color: #111111;
color: #eeeeee;
border: 1px solid grey;
}
video {
display: block;
margin: 0 auto;
border: 1px dotted grey;
}
.volume-slider {
text-align: center;
}
.container-fluid {
padding: 0;
}
.col-md-4 {
padding: 0 !important;
margin: 0 !important;
}
.row {
padding: 0 !important;
margin: 0 !important;
}
.video {
text-align: center;
}
.volume {
display: inline-block;
margin-right: 10px;
width: 50px;
}
.name {
display: inline-block;
height: 24px;
overflow: hidden;
}
</style>
</head>
<body>
<div id="room-selector">
<form onsubmit="connect(event)">
<input type="text" id="room-name" placeholder="Room name"/><br />
<input type="text" id="room-password" placeholder="Room Password" />
<button disabled id="room-name-button">Connect</button>
</form>
</div>
<div style="display: none" id="room">
<div class="container-fluid">
<div class="row">
<div class="col-md-4 video video-0">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-1">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-2">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
</div>
<div class="row">
<div class="col-md-4 video video-3">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-4">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-5">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
</div>
<div class="row">
<div class="col-md-4 video video-6">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-7">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
<div class="col-md-4 video video-8">
<video autoplay='autoplay'></video>
<audio autoplay='autoplay'></audio>
<span class="name"></span>
</div>
</div>
</div>
<div class="row">
<div class="volume-slider volume-0 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(0, this.value)">
<input type="text" onchange="setName(0, this.value)">
<button onclick="reload(0)">Reload</button>
</div>
<div class="volume-slider volume-1 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(1, this.value)">
<input type="text" onchange="setName(1, this.value)">
<button onclick="reload(1)">Reload</button>
</div>
<div class="volume-slider volume-2 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(2, this.value)">
<input type="text" onchange="setName(2, this.value)">
<button onclick="reload(2)">Reload</button>
</div>
</div>
<div class="row">
<div class="volume-slider volume-3 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(3, this.value)">
<input type="text" onchange="setName(3, this.value)">
<button onclick="reload(3)">Reload</button>
</div>
<div class="volume-slider volume-4 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(4, this.value)">
<input type="text" onchange="setName(4, this.value)">
<button onclick="reload(4)">Reload</button>
</div>
<div class="volume-slider volume-5 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(5, this.value)">
<input type="text" onchange="setName(5, this.value)">
<button onclick="reload(5)">Reload</button>
</div>
</div>
<div class="row">
<div class="volume-slider volume-6 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(6, this.value)">
<input type="text" onchange="setName(6, this.value)">
<button onclick="reload(6)">Reload</button>
</div>
<div class="volume-slider volume-7 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(7, this.value)">
<input type="text" onchange="setName(7, this.value)">
<button onclick="reload(7)">Reload</button>
</div>
<div class="volume-slider volume-8 col">
<span class="volume">70%</span>
<input type="range" min="0" max="1" step="0.01" value="0.7" oninput="setLevel(8, this.value)">
<input type="text" onchange="setName(8, this.value)">
<button onclick="reload(8)">Reload</button>
</div>
</div>
<button onclick="leave()">Leave Conference</button>
<p class="available-users"></p>
</div>
<div id="audioOutputSelectWrapper" style="display: none;">
Change audio output device
<select id="audioOutputSelect" onchange="changeAudioOutput(this)"></select>
</div>
</body>
</html>