jPlayer Jukebox is add-on to j
jPlayer Jukebox is add-on to jPlayer that allows to play media files on the page by scanning all links and adding them to a playlist.
DemoDemo is available at gyrocode.com/projects/jplayer-jukebox/.
Installation Third-party hostedInclude the following lines in HTML page right before the closing </head>
tag.
<!-- jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- jPlayer Jukebox add-on -->
<link type="text/css" href="//gyrocode.github.io/jplayer-jukebox/0.6.8/skin/uno/jplayer.uno.min.css" rel="stylesheet" />
<script type="text/javascript" src="//gyrocode.github.io/jplayer-jukebox/0.6.8/jplayer.jukebox.bundle.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Initialize jPlayerJukebox
var jpjb = new jPlayerJukebox({
'jukeboxOptions': {
'position': 'float-bl'
}
});
});
</script>
If you are already using jQuery library on your page, you can skip the line that includes it above.
Self-hostedFollow instructions in jPlayer Quick Start Guide on how to download and install jPlayer on your server. It is recommended to upload jPlayer into a separate folder, for example /js/jplayer
.
Download jPlayer Jukebox add-on, unzip the ZIP file and upload the files into the same location where you have uploaded jPlayer files.
For example, if you have uploaded jPlayer into /js/jplayer
folder, then the add-on should be placed in /js/jplayer/add-on
folder and Uno skin - in /js/jplayer/skin
folder.
Include the following lines in HTML page right before the closing </head>
tag if you haven't done so already.
<!-- jQuery -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- jPlayer Jukebox add-on -->
<link type="text/css" href="/js/jplayer/skin/uno/jplayer.uno.min.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jplayer/jquery.jplayer.min.js"></script>
<script type="text/javascript" src="/js/jplayer/add-on/jplayer.playlist.min.js"></script>
<script type="text/javascript" src="/js/jplayer/add-on/jplayer.jukebox.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
// Initialize jPlayerJukebox
var jpjb = new jPlayerJukebox({
'swfPath': '/js/jplayer',
'jukeboxOptions': {
'position': 'float-bl'
}
});
});
</script>
If you have uploaded jPlayer into folder other than /js/jplayer
folder, please modify the code accordingly.
If you are already using jQuery library on your page, you can skip the line that includes it above.
DocumentationDocumentation is available at gyrocode.com/projects/jplayer-jukebox/.
FeedbackPlease leave your comments or suggestions here. Issues can be reported on github.com.
Known LimitationsSupport for formats other than MP3 may not be available on all platforms.
Credits Sound sample is created by Lucas Gonze Material Design Icons by Google, CC BY-SA 4.0 License Icon font is generated using IcoMoon App CopyrightGyrocode, gyrocode.com
LicenseMIT License, opensource.org/licenses/MIT
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。