我好几天都在头疼,因为我不知道如何在特定的 div/span 中显示 JPlayer 播放列表的当前歌曲名称/名称?我正在使用 JPlayer 演示中的代码:
var playlist = new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, [
{
title:"Song - 1",
mp3:"./path/to/song1.mp3"
},
{
title:"Song - 2",
mp3:"./path/to/song2.mp3"
},
], {
swfPath: "js",
supplied: "mp3",
wmode: "window"
});
谢谢你们的帮助,伙计们!:)