开发者

youtube playlist plays next video in list

开发者 https://www.devze.com 2023-04-04 05:44 出处:网络
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 nex

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

精彩评论

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