87,993
社区成员
发帖
与我相关
我的任务
分享function viewplay(){
fonhen_jplayer_player(part,data);
}
function fonhen_jplayer_player(title,url){
var html = '<div id="fonhen-player-box" class="fonhen-player-box"><div class="fonhen-player-btn"><div class="jp-play"></div><div class="jp-
pause"></div></div><div class="fonhen-player-info"><div class="fonhen-player-text"><div class="fonhen-player-volume"><div class="jp-mute"></div><div class="jp-volume-
bar"><div class="jp-volume-bar-value"></div></div></div><div class="fonhen-player-time"><span class="jp-current-time" role="timer" aria-label="time"></span> / <span
class="jp-duration" role="timer" aria-label="duration"></span></div></div><div class="jp-progress"><div class="jp-seek-bar"><div class="jp-play-
bar"></div></div></div></div></div>';
$('#fonhen-player').after(html);
$("#fonhen-player").jPlayer({
swfPath: "/player",
supplied: "mp3,m4a",
useStateClassSkin: true,
cssSelectorAncestor : '#fonhen-player-box'
});
$("#fonhen-player").jPlayer("setMedia",{mp3:url,m4a:url}).jPlayer('play');
//播放完成后事件执行
$("#fonhen-player").on($.jPlayer.event.ended,function(e){
FonHen_NextData();
});
}