-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
57 lines (57 loc) · 2.07 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
<!doctype html>
<html>
<head>
<meta charset='utf8'>
<title>Boombox.js</title>
<link src='https://audiofile.cc/css/reset.css' type='text/css'>
<script src="./js/jquery.js"></script>
<script src="./js/boombox.js"></script>
<script src="./js/EventObject.js"></script>
<script>
$(document).ready(function() {
var eventObject = new EventObject();
new Boombox({
tracks : {
'Grace' : 'http://cardonadesigns.com/html5/audio/grace',
'All is Illusion' : 'http://cardonadesigns.com/html5/audio/all-is-illusion'
},
configs : {
autoplay : false,
buildBoombox : true,
container : 'boombox',
events : {
'abort' :'onAbort',
'canplay' :'onCanPlay',
'canplaythrough' :'onCanPlayThrough',
'durationchange' :'onDurationChange',
'emptied' :'onEmptied',
'ended' :'onEnded',
'error' :'onError',
'loadeddata' :'onLoadedData',
'loadedmetadata' :'onLoadedMetaData',
'loadstart' :'onLoadStart',
'pause' :'onPause',
'play' :'onPlay',
'playing' :'onPlaying',
'progress' :'onProgress',
'ratechange' :'onRateChange',
'seeked' :'onSeeked',
'seeking' :'onSeeking',
'stalled' :'onStalled',
'suspend' :'onSuspend',
'timeupdate' :'onTimeUpdate',
'volumechange' :'onVolumeChange',
'waiting' :'onWaiting',
'eventObj' : eventObject
},
startingTrack : 1
}
});
});
</script>
</head>
<body>
<div id="boombox">
</div>
</body>
</html>