-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.html
74 lines (62 loc) · 1.83 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Web Audio Recording Tests (Simpler)</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<style>
button.btn {
margin: 0.25rem;
width: 15rem;
}
audio {
width: 100%;
}
#recording-meter {
height: 10rem;
margin: 1rem 0;
width: 4rem;
}
</style>
</head>
<body>
<main role="main" class="container m-2">
<div class="row">
<div class="col">
<button id="btn-record" type="button" class="btn btn-primary">Record</button>
<span class="ml-3"></span>
<button id="btn-stop" type="button" class="btn btn-primary" disabled>Stop</button>
<div style="margin: .25rem">
<span id="debug-txt"></span>
</div>
</div>
</div>
<div class="row">
</div>
<div class="row">
<div class="col">
<div id="recording-meter"></div>
</div>
</div>
<div class="row">
<div class="col">
<h3>Recordings</h3>
<div id="recordings-cont">
</div>
</div>
</div>
</main>
<script src="js/WebAudioPeakMeter.js"></script>
<script src="js/encoder-wav-worker.js"></script>
<script src="js/RecorderService.js"></script>
<script src="js/app.js"></script>
<script>
window.onload = function (e) {
let app = new App();
app.init()
}
</script>
</body>
</html>