forked from kolber/audiojs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test1.html
36 lines (32 loc) · 866 Bytes
/
test1.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Test 1 - audio.js</title>
<style>
p { clear: both; }
</style>
<script src="../audiojs/audio.js"></script>
<script>
audiojs.events.ready(function() {
var as = audiojs.createAll();
});
</script>
</head>
<body>
<h1>audiojs.createAll()</h1>
<p>Load from remote URL</p>
<audio preload="auto">
<source src="https://raw.githubusercontent.com/kolber/audiojs/master/mp3/bensound-dubstep.mp3">
</audio>
<p>Load local file</p>
<audio preload="auto">
<source src="../mp3/bensound-dubstep.mp3">
</audio>
<p>Load failure (from source)</p>
<audio preload="auto">
<source src="./mp3/invalid.mp3">
</audio>
<p><a href="http://www.bensound.com/royalty-free-music/track/dubstep">Royalty Free Music from Bensound</a></p>
</body>
</html>