forked from katspaugh/wavesurfer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
239 lines (195 loc) · 10.7 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
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>wavesurfer.js</title>
<link href="data:image/gif;" rel="icon" type="image/x-icon" />
<!-- Bootstrap -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet">
<link rel="stylesheet" href="http://simonwhitaker.github.com/github-fork-ribbon-css/gh-fork-ribbon.css" />
<link rel="stylesheet" href="example/css/style.css" />
<link rel="screenshot" itemprop="screenshot" href="http://katspaugh.github.io/wavesurfer.js/example/screenshot.png" />
<!-- wavesurfer.js -->
<script src="src/wavesurfer.js"></script>
<script src="src/webaudio.js"></script>
<script src="src/webaudio.buffer.js"></script>
<script src="src/webaudio.media.js"></script>
<script src="src/drawer.js"></script>
<script src="src/drawer.canvas.js"></script>
<!-- Demo -->
<script src="example/main.js"></script>
<script src="example/trivia.js"></script>
</head>
<body itemscope itemtype="http://schema.org/WebApplication">
<div class="container">
<div class="header">
<noindex>
<ul class="nav nav-pills pull-right">
<li><a href="?fill">Fill</a></li>
<li><a href="?scroll">Scroll</a></li>
<li><a href="?normalize">Normalize</a></li>
</ul>
</noindex>
<h1 itemprop="name">wavesurfer.js</h1>
</div>
<div id="demo">
<div id="waveform">
<div class="progress progress-striped active" id="progress-bar">
<div class="progress-bar progress-bar-info"></div>
</div>
<!-- Here be the waveform -->
</div>
<div class="controls">
<button class="btn btn-primary" data-action="back">
<i class="glyphicon glyphicon-step-backward"></i>
Backward
</button>
<button class="btn btn-primary" data-action="play">
<i class="glyphicon glyphicon-play"></i>
Play
/
<i class="glyphicon glyphicon-pause"></i>
Pause
</button>
<button class="btn btn-primary" data-action="forth">
<i class="glyphicon glyphicon-step-forward"></i>
Forward
</button>
<button class="btn btn-primary" data-action="toggle-mute">
<i class="glyphicon glyphicon-volume-off"></i>
Toggle Mute
</button>
<div class="mark-controls">
<button class="btn btn-success" data-action="green-mark">
<i class="glyphicon glyphicon-flag"></i>
Set green mark
</button>
<button class="btn btn-danger" data-action="red-mark">
<i class="glyphicon glyphicon-flag"></i>
Set red mark
</button>
</div>
</div>
</div>
<p class="lead pull-center" id="drop">
Drag'n'drop your favorite
<i class="glyphicon glyphicon-music"></i>-file
here!
</p>
<div class="row marketing">
<div class="col-lg-6">
<h4>Web Audio Waveform Visualizer</h4>
<p itemprop="about">Customizable waveform audio visualization built on top of Web Audio API and HTML5 Canvas. With <strong>wavesurfer.js</strong> you can assemble a full-featured <strong>HTML5 audio player</strong> or create <a rel="nofollow" href="http://moduscreate.com/touch-dj-a-sencha-touch-dj-app/">a sophisticated DJ application</a>.</p>
<h4>Compatibility</h4>
<p itemprop="browserRequirements"><strong>wavesurfer.js</strong> runs on modern browsers <a href="http://caniuse.com/audio-api" rel="nofollow">supporting Web Audio</a>. Including Firefox, Chrome, Safari, Mobile Safari and Opera.</p>
<h4>Download</h4>
<p>
<a class="btn btn-large btn-success" href="/build/wavesurfer.min.js" itemprop="downloadUrl">Download <strong>wavesurfer.min.js</strong> (20 KB)</a>
</p>
</div>
<div class="col-lg-6">
<h4>Quick Start</h4>
<noindex><p>
<pre><code>var wavesurfer = Object.create(WaveSurfer);
wavesurfer.init({
container: document.querySelector('#wave'),
waveColor: 'violet',
progressColor: 'purple'
});
wavesurfer.on('ready', function () {
wavesurfer.play();
});
wavesurfer.load('example/media/demo.mp3');</code></pre>
</p></noindex>
<h4>Documentation</h4>
<p>The full list of options and methods can be found in <a href="https://github.com/katspaugh/wavesurfer.js/blob/master/README.md">README</a>.</p>
</div>
</div>
<div class="row marketing">
<div class="col-lg-9">
<h4>Plugins & Examples</h4>
<p>Thanks to the everyting-is-public API, it's easy to write <strong>wavesurfer.js</strong> plugins.</p>
<ul>
<li>
<h4><a href="example/elan/?scroll">ELAN plugin</a></h4>
<p>
Reads ELAN files and displays audio annotations as an interactive widget. ELAN is parsed into a JavaScript object with some denormalization.
</p>
</li>
<li>
<h4><a href="example/timeline">Timeline plugin</a></h4>
<p>
Adds a nice simple timeline to your waveform. By <a href="https://github.com/instajams">Instajams</a>.
</p>
</li>
<li>
<h4><a href="example/panner">Panner</a></h4>
<p>
Creating a panner with wavesurfer.js is easy-peasy. Follow the 4 steps.
</p>
</li>
<li>
<h4><a href="example/equalizer">Equalizer</a></h4>
<p>
Simple equalizer to demonstrate how to connect multiple filters in chain.
</p>
</li>
<li>
<h4><a href="example/render-as-it-plays">Render As It Plays</a></h4>
<p>
Since wavesurfer.js can't render very long
files due to browsers' memory limits, you can
use the <code>loadStream</code> method to
render long clips as they play.
</p>
</li>
<li>
<h4><a href="example/ex.fm">ex.fm API example</a></h4>
<p>
Another show-case
of <code>loadStream</code>–playing
cross-domain audio.
</p>
</li>
</ul>
</div>
<div class="col-lg-3">
<h4>Support The Project</h4>
<hr />
<!--Amazon-->
<iframe style="width:120px;height:240px;" marginwidth="0" marginheight="0" scrolling="no" frameborder="0" src="//ws-na.amazon-adsystem.com/widgets/q?ServiceVersion=20070822&OneJS=1&Operation=GetAdHtml&MarketPlace=US&source=ac&ref=tf_til&ad_type=product_link&tracking_id=katspaughgi01-20&marketplace=amazon®ion=US&placement=1449332684&asins=1449332684&linkId=KNHG7ICUVJVPUTUF&show_border=true&link_opens_in_new_window=true">
</iframe>
</div>
</div>
<div class="footer row">
<div class="col-sm-12">
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by/3.0/80x15.png" /></a>
</div>
<div class="col-sm-7">
<span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" property="dct:title" rel="dct:type">wavesurfer.js</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="https://github.com/katspaugh/wavesurfer.js" property="cc:attributionName" rel="cc:attributionURL">katspaugh</a> is licensed under a <a style="white-space: nowrap" rel="license" href="http://creativecommons.org/licenses/by/3.0/deed.en_US">Creative Commons Attribution 3.0 Unported License</a>.
</div>
<div class="col-sm-5">
<div class="pull-right">
<noindex>
Demo music track is <a href="http://www.jamendo.com/en/track/661578/trou" rel="nofollow"><b>Trou</b> <span class="muted">by</span> <b>czskamaarù</b></a>. Thanks!
</noindex>
</div>
</div>
</div>
</div>
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a itemprop="isBasedOnUrl" href="https://github.com/katspaugh/wavesurfer.js">Fork me on GitHub</a>
</div>
</div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-50026819-1', 'wavesurfer.fm');
ga('send', 'pageview');
</script>
</body>
</html>