-
Notifications
You must be signed in to change notification settings - Fork 6
/
example.html
110 lines (105 loc) · 5.47 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Demo : jplayer skinned in bootstrap</title>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link href="jplayer-bootstrap.css" rel="stylesheet">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="jQuery.jPlayer.2.6.0/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="jQuery.jPlayer.2.6.0/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="jplayer-buffer.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
var buffer = new JPlayerBuffer('jquery_jplayer_1').buffer();
new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, [
{
title:"Song From a Secret Garden",
mp3:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/Song%20From%20a%20Secret%20Garden%20%E7%A5%9E%E7%A7%98%E5%9B%AD%E4%B9%8B%E6%AD%8C.mp3",
m4a:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/Song%20From%20a%20Secret%20Garden%20%E7%A5%9E%E7%A7%98%E5%9B%AD%E4%B9%8B%E6%AD%8C.mp3",
oga:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/Song%20From%20a%20Secret%20Garden%20%E7%A5%9E%E7%A7%98%E5%9B%AD%E4%B9%8B%E6%AD%8C.mp3"
},
{
title:"The Promise",
mp3:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/The%20Promise%20%E8%AF%BA%E8%A8%80.mp3",
m4a:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/The%20Promise%20%E8%AF%BA%E8%A8%80.mp3",
oga:"http://www.lusaisai.com/resources/music/Secret%20Garden/CD1/The%20Promise%20%E8%AF%BA%E8%A8%80.mp3"
},
{
title:"Concerto Pour Ceux",
mp3:"http://www.lusaisai.com/resources/music/%E5%BC%A0%E9%9D%93%E9%A2%96/%E5%80%BE%E5%90%AC(%E7%8E%B0%E5%9C%BA%E4%B8%93%E8%BE%91)/Concerto%20Pour%20Ceux.mp3",
m4a:"http://www.lusaisai.com/resources/music/%E5%BC%A0%E9%9D%93%E9%A2%96/%E5%80%BE%E5%90%AC(%E7%8E%B0%E5%9C%BA%E4%B8%93%E8%BE%91)/Concerto%20Pour%20Ceux.mp3",
oga:"http://www.lusaisai.com/resources/music/%E5%BC%A0%E9%9D%93%E9%A2%96/%E5%80%BE%E5%90%AC(%E7%8E%B0%E5%9C%BA%E4%B8%93%E8%BE%91)/Concerto%20Pour%20Ceux.mp3"
}
], {
swfPath: "jQuery.jPlayer.2.6.0",
supplied: "mp3,m4a,oga",
wmode: "window",
smoothPlayBar: false,
keyEnabled: true,
playlistOptions: {
autoPlay: true,
enableRemoveControls: true
},
timeupdate: buffer,
progress: buffer
});
});
//]]>
</script>
</head>
<body>
<div class="container">
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
<div id="jp_container_1" class="jp-audio">
<div class="jp-type-playlist">
<div class="jp-gui jp-interface">
<ul class="jp-controls">
<li><a href="javascript:;" class="jp-previous btn btn-default btn-sm" tabindex="1"><span class="glyphicon glyphicon-backward"></span></a></li>
<li><a href="javascript:;" class="jp-play btn btn-default btn-sm" tabindex="1"><span class="glyphicon glyphicon-play"></span></a></li>
<li><a href="javascript:;" class="jp-pause btn btn-default btn-sm" tabindex="1"><span class="glyphicon glyphicon-pause"></span></a></li>
<li><a href="javascript:;" class="jp-next btn btn-default btn-sm" tabindex="1"><span class="glyphicon glyphicon-forward"></span></a></li>
<li><a href="javascript:;" class="jp-stop btn btn-default btn-sm" tabindex="1"><span class="glyphicon glyphicon-stop"></span></a></li>
<li><a href="javascript:;" class="jp-shuffle btn btn-default btn-sm" tabindex="1" title="shuffle the playlist"><span class="glyphicon glyphicon-random"></span></a></li>
<li><a href="javascript:;" class="jp-shuffle-off btn btn-default btn-sm" tabindex="1" title="shuffle the playlist"><span class=" glyphicon glyphicon-random"></span></a></li>
<li><a href="javascript:;" class="jp-repeat btn btn-default btn-sm" tabindex="1" title="repeat"><span class="glyphicon glyphicon-arrow-down"></span></a></li>
<li><a href="javascript:;" class="jp-repeat-off btn btn-default btn-sm" tabindex="1" title="repeat off"><span class="glyphicon glyphicon-repeat"></span></a></li>
<br/>
<li><a href="javascript:;" class="jp-mute btn btn-default btn-sm" tabindex="1" title="mute"><span class="glyphicon glyphicon-volume-off"></span></a></li>
<li><a href="javascript:;" class="jp-unmute btn btn-default btn-sm" tabindex="1" title="unmute"><span class="glyphicon glyphicon-volume-down"></span></a></li>
<li>
<div class="jp-volume-bar progress">
<div class="jp-volume-bar-value progress-bar progress-bar-success"></div>
</div>
</li>
<li><a href="javascript:;" class="jp-volume-max btn btn-default btn-sm" tabindex="1" title="max volume"><span class="glyphicon glyphicon-volume-up"></span></a></li>
</ul>
<div class="jp-progress">
<div class="jp-seek-bar progress">
<div class="jp-play-bar progress-bar"></div>
<div class="jp-buffer-bar progress-bar" style="width: 0%"></div>
</div>
</div>
<div class="jp-times">
<div class="jp-current-time badge"></div>
<div class="jp-duration badge"></div>
</div>
</div>
<div class="jp-playlist">
<ul>
<li></li>
</ul>
</div>
<div class="jp-no-solution">
<span>Update Required</span>
To play the media you will need to either update your browser to a recent version or update your <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash plugin</a>.
</div>
</div>
</div>
</div>
</body>
</html>