首页 新闻 搜索 专区 学院

jPlayer播放本地音乐

0
悬赏园豆:20 [待解决问题]

function playMusic(name, media) {
alert("playMusic"+media);
$("#jquery_jplayer").jPlayer( "destroy" );

   $("#jquery_jplayer").jPlayer({
    // alert(""+media);
        ready: function(event) {
            $(this).jPlayer("setMedia", {
                title: name,
              /*   mp3: "images/song/53.mp3" */
              mp3:"images/song/Yanni - If i could Tell You.mp3"
            }).jPlayer( "play" );
        },
        
        swfPath: "dist/jplayer/jquery.jplayer.swf",
        supplied: "mp3",
        wmode: "window",
        useStateClassSkin: true,
        autoBlur: false,
        smoothPlayBar: true,
        keyEnabled: true,
        remainingDuration: true,
        toggleDuration: true
    });

}

ipkhyq的主页 ipkhyq | 初学一级 | 园豆:124
提问于:2019-12-15 22:29
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册