开发者

youtube playlist plays next video in list

im using this youtube playlist plugin http://geckohub.com/jquery/youtubeplaylist/ and im trying to find a way of adding a bit of code that will allow the list of 开发者_开发百科videos to be played next after the main video has finished playing. I have managed to loop the main video but trying to get the next video on the list to play.

cheers Steve


check this URl autoplay youtube video it is not using this youtubeplaylist plugin. But you will get some idea to call next video when statechange

var o = document.getElementById( 'ytplayer_object' );
    if ( o )
    {
      o.addEventListener( "onStateChange", "ytplayer_statechange" );
      o.addEventListener( "onError", "ytplayer_error" );
    }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜