192 lines
5.8 KiB
Smarty
192 lines
5.8 KiB
Smarty
|
|
|
||
|
|
{* $Id: profile_music.tpl 11 2009-01-11 06:03:58Z john $ *}
|
||
|
|
|
||
|
|
{* SHOW MUSIC PLAYER *}
|
||
|
|
{if $music_allow}
|
||
|
|
|
||
|
|
<table cellpadding='0' cellspacing='0' width='100%' style='margin-bottom: 10px;'>
|
||
|
|
<tr>
|
||
|
|
<td class='header'>{lang_sprintf id=4000041 1=$owner->user_displayname}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<td class='profile'>
|
||
|
|
{*
|
||
|
|
<object width='{$skin_width}' height='{$skin_height}' id='main' align='middle'>
|
||
|
|
<param name='movie' value='images/music_xspf_jukebox.swf?skin_url=include/music_skins/{$skin_title}/&autoplay={if !$autoplay}false{else}true{/if}&playlist_url=music_ajax.php?user_id={$owner->user_info.user_id}&alphabetize=false&autoload=true&autoresume=false&findImage=true&timedisplay=1&loaded=1' />
|
||
|
|
<param name='wmode' value='transparent' />
|
||
|
|
<embed src='images/music_xspf_jukebox.swf?skin_url=include/music_skins/{$skin_title}/&autoplay={if !$autoplay}false{else}true{/if}&playlist_url=music_ajax.php?user_id={$owner->user_info.user_id}&alphabetize=false&autoload=true&autoresume=false&findImage=true&timedisplay=1&loaded=1' wmode='transparent' width='{$skin_width}' height='{$skin_height}' name='main' align='middle' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />
|
||
|
|
</object>*}
|
||
|
|
<link href="/jlplayer/skin/blue.monday/css/jplayer.blue.monday.min.css" rel="stylesheet" type="text/css" />
|
||
|
|
<script type="text/javascript" src="/jlplayer/jquery.min.js"></script>
|
||
|
|
<script type="text/javascript" src="/jlplayer/jplayer/jquery.jplayer.min.js"></script>
|
||
|
|
<script type="text/javascript" src="/jlplayer/add-on/jplayer.playlist.min.js"></script>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<script type="text/javascript">
|
||
|
|
{literal}
|
||
|
|
//<![CDATA[
|
||
|
|
$b=jQuery.noConflict();
|
||
|
|
$b(document).ready(function(){
|
||
|
|
|
||
|
|
|
||
|
|
var cssSelector = {
|
||
|
|
jPlayer: "#jquery_jplayer_1",
|
||
|
|
cssSelectorAncestor: "#jp_container_1"
|
||
|
|
};
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
/*new jPlayerPlaylist({
|
||
|
|
jPlayer: "#jquery_jplayer_1",
|
||
|
|
|
||
|
|
|
||
|
|
cssSelectorAncestor: "#jp_container_1"
|
||
|
|
}, [
|
||
|
|
{
|
||
|
|
title:"Cro Magnon Man",
|
||
|
|
artist:"The Stark Palace",
|
||
|
|
mp3:"http://www.jplayer.org/audio/mp3/TSP-01-Cro_magnon_man.mp3",
|
||
|
|
oga:"http://www.jplayer.org/audio/ogg/TSP-01-Cro_magnon_man.ogg",
|
||
|
|
poster: "http://www.jplayer.org/audio/poster/The_Stark_Palace_640x360.png"
|
||
|
|
}
|
||
|
|
], {
|
||
|
|
swfPath: "../../dist/jplayer",
|
||
|
|
supplied: "webmv, ogv, m4v, oga, mp3",
|
||
|
|
useStateClassSkin: true,
|
||
|
|
autoBlur: false,
|
||
|
|
smoothPlayBar: true,
|
||
|
|
keyEnabled: true,
|
||
|
|
audioFullScreen: true
|
||
|
|
});
|
||
|
|
*/
|
||
|
|
var playlist = []; // Empty playlist
|
||
|
|
s={
|
||
|
|
playlistOptions: {
|
||
|
|
autoPlay: true
|
||
|
|
},
|
||
|
|
autoPlay: true,
|
||
|
|
swfPath: "/jlplayer/dist/jplayer",
|
||
|
|
supplied: "mp3",
|
||
|
|
|
||
|
|
useStateClassSkin: true,
|
||
|
|
autoBlur: false,
|
||
|
|
smoothPlayBar: true,
|
||
|
|
keyEnabled: true,
|
||
|
|
audioFullScreen: false
|
||
|
|
};
|
||
|
|
var myPlaylist = new jPlayerPlaylist(cssSelector, playlist, s);
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
var url = "music_ajax1.php?user_id={/literal}{$owner->user_info.user_id}{literal}";
|
||
|
|
var xmlhttp;
|
||
|
|
if (window.XMLHttpRequest) {
|
||
|
|
xmlhttp = new XMLHttpRequest();
|
||
|
|
}
|
||
|
|
else if (window.ActiveXObject) {
|
||
|
|
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
|
||
|
|
}
|
||
|
|
|
||
|
|
if (xmlhttp) {
|
||
|
|
xmlhttp.open("GET", url, true);
|
||
|
|
xmlhttp.setRequestHeader('Content-Type', 'text/xml');
|
||
|
|
xmlhttp.onreadystatechange = function () {
|
||
|
|
if (xmlhttp.readyState == 4) {
|
||
|
|
|
||
|
|
|
||
|
|
xmlDoc=xmlhttp.responseXML;
|
||
|
|
|
||
|
|
|
||
|
|
var x=xmlDoc.getElementsByTagName("track");
|
||
|
|
for (i=0;i<x.length;i++)
|
||
|
|
{
|
||
|
|
|
||
|
|
myPlaylist.add({
|
||
|
|
title: decodeURIComponent(x[i].getElementsByTagName("annotation")[0].childNodes[0].nodeValue),
|
||
|
|
|
||
|
|
mp3: x[i].getElementsByTagName("location")[0].childNodes[0].nodeValue
|
||
|
|
|
||
|
|
});
|
||
|
|
|
||
|
|
}
|
||
|
|
{/literal}
|
||
|
|
{if $autoplay}
|
||
|
|
myPlaylist.play();
|
||
|
|
{/if}
|
||
|
|
{literal}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
};
|
||
|
|
xmlhttp.send();
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
});
|
||
|
|
|
||
|
|
//]]>
|
||
|
|
{/literal}
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<div id="jp_container_1" class="jp-video jp-video-270p" role="application" aria-label="media player">
|
||
|
|
<div class="jp-type-playlist">
|
||
|
|
<div id="jquery_jplayer_1" class="jp-jplayer"></div>
|
||
|
|
<div class="jp-gui">
|
||
|
|
<div class="jp-video-play">
|
||
|
|
<button class="jp-video-play-icon" role="button" tabindex="0">play</button>
|
||
|
|
</div>
|
||
|
|
<div class="jp-interface">
|
||
|
|
<div class="jp-progress">
|
||
|
|
<div class="jp-seek-bar">
|
||
|
|
<div class="jp-play-bar"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="jp-current-time" role="timer" aria-label="time"> </div>
|
||
|
|
<div class="jp-duration" role="timer" aria-label="duration"> </div>
|
||
|
|
<div class="jp-controls-holder">
|
||
|
|
<div class="jp-controls">
|
||
|
|
<button class="jp-previous" role="button" tabindex="0">previous</button>
|
||
|
|
<button class="jp-play" role="button" tabindex="0">play</button>
|
||
|
|
<button class="jp-next" role="button" tabindex="0">next</button>
|
||
|
|
<button class="jp-stop" role="button" tabindex="0">stop</button>
|
||
|
|
</div>
|
||
|
|
<div class="jp-volume-controls">
|
||
|
|
<button class="jp-mute" role="button" tabindex="0">mute</button>
|
||
|
|
<button class="jp-volume-max" role="button" tabindex="0">max volume</button>
|
||
|
|
<div class="jp-volume-bar">
|
||
|
|
<div class="jp-volume-bar-value"></div>
|
||
|
|
</div>
|
||
|
|
<div class="clear"></div>
|
||
|
|
</div>
|
||
|
|
<div class="jp-toggles">
|
||
|
|
<button class="jp-repeat" role="button" tabindex="0">repeat</button>
|
||
|
|
<button class="jp-shuffle" role="button" tabindex="0">shuffle</button>
|
||
|
|
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="jp-details">
|
||
|
|
<div class="jp-title" aria-label="title"> </div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
<div class="jp-playlist">
|
||
|
|
<ul>
|
||
|
|
<!-- The method Playlist.displayPlaylist() uses this unordered list -->
|
||
|
|
<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>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
|
||
|
|
{/if}
|