-
Notifications
You must be signed in to change notification settings - Fork 0
/
room.php
262 lines (232 loc) · 13.1 KB
/
room.php
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?php
require_once('include/stuff.php');
if (!isset($_GET["id"])) {
header("location: multi.php");
exit;
}
$project = 'AdvMultiComm';
?>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php echo $project; ?></title>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto|Varela+Round" rel="stylesheet">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/room.css" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
<a class="navbar-brand" href="index.php"><?php echo $project; ?></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-end" id="navbarCollapse">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="index.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="multi.php">Multiraum</a>
</li>
</ul>
</div>
</nav>
</header>
<div class="container-fluid">
<div class="row">
<div class="col-lg-3">
<div class="playlist">
<img src="img/yellow.png" id="oIcon" class="online-icon" alt="icon">
<h3>Chat</h3>
<hr>
<div id="chat-box">
</div>
<hr>
<div class="form-group">
<input type="text" class="form-control" id="chat" placeholder="Nachricht">
</div>
</div>
</div>
<div class="col-lg-6">
<div class="row">
<div class="col-lg-12">
<audio id="player" style="margin-left:auto;margin-right:auto;display:block;"
controls
src="-"
crossorigin="anonymous"
type="audio/mp3"
hidden=""
>
Ihr Browser kann dieses Tondokument nicht wiedergeben.
</audio>
</div>
<div class="col-lg-12">
<audio id="mic-player" autoplay muted></audio>
</div>
<div class="col-lg-12 text-center">
<canvas id="audio_visual_player" width="300px" height="400px" style="margin-top:10%; margin-bottom: 10%;">
</canvas>
</div>
</div>
<div class="" style="background-color:#007bff;border-radius:5px;">
<div class="row">
<div class="col-md-1"><button id="audio-control-play-btn" style="background:rgba(0,0,0,0);border:0px;"><i class="fa fa-play"></i></button></div>
<div class="col-md-2" id="audio-time-informs" style="color:white;margin-top:3.5px;">--:--</div>
<div class="col-md-4"><canvas id="audio-time-progress-bar" height="10" style="height:10px;margin-top:8.5px;"></canvas></div>
<div class="col-md-3"><button id="audio-control-mute-btn" style="background:rgba(0,0,0,0);border:0px;"><i class="fa fa-volume-up"></i></button></div>
<div class="col-md-2"><button id="mic-btn" style="background:rgba(0,0,0,0);border:0px;"><i class="fa fa-microphone-slash"></i></button></div>
</div>
</div>
<div class="row" style="background-color:#e5e5e5; margin-top: 5%;">
<div class="col-lg-12 text-center">
<p class="" id="song_info" style="margin-top:1%;margin-bottom:-2%;font-weight:bold;display:none;">Playlist: abc - bird3.mp3</p>
</div>
</div>
<div class="row" style=" background-color:#e5e5e5;">
<div class="col-lg-12 text-center ">
<button id="nerd-stats-btn" style="margin-top:2%;" data-toggle="modal" data-target="#nerdstatsmodal" class="btn btn-info pull-right">Statistics for Nerds</button>
</div>
</div>
<div class="row" style=" background-color:#e5e5e5;">
<div class="col-lg-12">
<table class="table ">
<tbody>
<tr>
<td><b>Volume:</b></td>
<td><input id="volume_slider"type="range" step="1" min="1" max="100" value="50" class="slider"></td>
<td id="s0">50%</td>
</tr>
<tr>
<td><b>Panning:</b></td>
<td><input id="panner_slider"type="range" step="0.01" min="-1" max="1" value="0" class="slider"></td>
<td id="s1">0</td>
</tr>
<tr>
<td id="filter"><b>BiQuadFilter:</b></td>
<td> <select id ="BiQuadFilter" placeholder="BiQuadFilter">
<option value="lowshelf">Low Shelf</option>
<option value="highshelf" >High Shelf</option>
<option value="lowfreq">Low Frequency</option>
<option value="highfreq" >High Frequency</option>
<option value="off" selected>Off</option>
</select></td>
<tr>
<td id="bars"><b>Visualization:</b></td>
<td><select id="waves" placeholder="waves">
<option value="sinewave">Sinewave</option>
<option value="frequencybars" >Frequency bars</option>
<option value="off" selected>Off</option>
</select>
</td></tr>
</tr>
<tr><td><b>Convolver</b>
</td>
<td id="hf">
<select id="property">
<option value="reverb">Reverb Effect</option>
<option value="disablenormal" >Disable Normalization</option>
<option value="off" selected>Off</option>
</select>
<!--<td id ="convolver">
<select id ="convolverwave" placeholder="">
<option value="sinewave">Sinewave</option>
<option value="frequencybars" >Frequency bars</option>
<option value="off" selected>Off</option>
</select>
</td>-->
</tr>
<tr>
<td>
<b>Oscillator_wave</b>
<input id="Oscillator_wave"type="range" step="0.01" min="20" max="1000" value="440" class="slider">
</td>
<td>
<input type="text" id="freq" value="440" disabled>
</td>
<td><input type="button" value="start" id="start"></td>
</tr>
<td><b>Split me</b></td>
<td><input type="button" value="split Left" id="split"></td>
<td><input type="button" value="split Right" id="splitR"></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="song_list">
<h3>Playlist</h3>
<hr>
<div id="inner_playlist"></div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="detailModal" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="detailModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="detailPlaylist">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
<button id="init-btn" style="display:none;">Start WEB-Audio-API</button>
<!-- Stats for Nerds !-->
<div class="modal fade" id="nerdstatsmodal" tabindex="-1" role="dialog" aria-labelledby="detailModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="detailModalLabel">Statistics</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body" id="">
<table id="detailaudio-tbl">
<tbody>
</tbody>
</table>
<table id="byte-tbl">
<tbody></tbody>
</table>
</div>
<div class="modal-body" id="graph-space">
<canvas id="buffered-parts-chart" width="200" height="100"></canvas>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
<audio id="player2"></audio>
<?php echo getFooter($project); ?>
<script src="js/room.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.bundle.js"></script>
<script src="js/stats-graph.js"></script>
<script src="js/audio.js"></script>
<script src="js/playlist.js"></script>
<script>
setTimeout(function () {
document.getElementById("init-btn").click();
}, 150);
</script>
<script src="js/micprocessor.js"></script>
</body>
</html>