forked from katspaugh/wavesurfer.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
42 lines (34 loc) · 1.13 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
<!DOCTYPE html>
<html>
<head>
<title>wavesurfer.js</title>
</head>
<body>
<h1>wavesurfer.js</h1>
<div class="timeline">
<div class="cursor" id="wave-cursor"></div>
<canvas id="wave" width="1024" height="128"></canvas>
</div>
<p>
The preloaded sound sample is from
<a href="http://librivox.org/samples/">http://librivox.org/samples/</a>.
</p>
<p>
To surf your own audio files, <strong>drag'n'drop</strong>
them to the page.
</p>
<p>
Press <kbd>Space</kbd> to play/pause the audio.
</p>
<p>
<strong>NB:</strong>
<a href="https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html">WebAudio</a>
works only in recent versions of WebKit-based browsers
(Chrome and Safari).
</p>
<script src="src/wavesurfer.js"></script>
<script src="src/webaudio.js"></script>
<script src="src/drawer.js"></script>
<script src="examples/webaudio/main.js"></script>
</body>
</html>