-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplay-ka.html
79 lines (64 loc) · 1.63 KB
/
play-ka.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
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Demo : The jPlayerPlaylist Object</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="skin/jplayer.blue.monday.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="js/jplayer.playlist.min.js"></script>
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
var myPlaylist = new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_N",
cssSelectorAncestor: "#jp_container_N"
}, [
{
mp3:"sound/11_1.mp3"
}
], {
playlistOptions: {
enableRemoveControls: true
},
swfPath: "js",
supplied: "mp3"
});
myPlaylist.setPlaylist([
{
title:"KA",
mp3:"sound/11_1.mp3"
}
]);
// The play commands
$("#playlist-play").click(function() {
myPlaylist.play();
});
// Changing the playlist options
// Option: autoPlay
$("#playlist-option-autoPlay-true").click(function() {
myPlaylist.option("autoPlay", true);
});
$("#playlist-option-autoPlay-false").click(function() {
myPlaylist.option("autoPlay", false);
});
});
//]]>
</script>
</head>
<body>
<div id="jp_container_N" class="jp-video jp-video-270p">
<div class="jp-type-playlist">
<div id="jquery_jplayer_N" class="jp-jplayer"></div>
<div class="jp-playlist">
<ul>
<!-- The method Playlist.displayPlaylist() uses this unordered list -->
<li></li>
</ul>
</div>
</div>
</div>
<a id="playlist-play" href="javascript:;">play</a>
</body>
</html>