jPlayer - 如何连续播放曲目?

时间:2013-03-18 13:18:15

标签: jplayer

无法解决这个问题 - 我只是希望它能够在歌曲结束时继续播放下一首曲目。自动播放设置为真..看不出是什么抛出来的?

http://bavanandan.co.uk/press/

1 个答案:

答案 0 :(得分:0)

(我知道,它已经老了,但我只是在寻找解决方案而且偶然发现了这个问题。)

怎么样

                    var myPlaylist = new jPlayerPlaylist( {
                        jPlayer: "#jquery_jplayer_1",
                        cssSelectorAncestor: "#jp_container_1" },
                        [],
                        {
                            swfPath: "wolf-jplayer/assets/js/src",
                            wmode: "window",
                            ended: function() {
                                // continouos play
                                var i = i+1;
                                myPlaylist.play(i);
                            }
                        }); //jPlayerPlaylist