0

My purpose is getting user skipped to the video which one's red arrow is clicked on this demo

I have tried function ytplayer_render_playlist( ) but it didn't work. What change i should do on demo to skip video which one's red arrow is clicked?

  function ytplayer_render_playlist( )
  {
    for ( var i = 0; i < ytplayer_playlist.length; i++ )
    {
      var a = getElementById("trackArrow");
      a.onclick = (
        function( j )
        {
          return function( )
          {
            ytplayer_playitem = j;
            ytplayer_playlazy( 1000 );
          };
        }
      )( i );

    }
  }
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
mcan
  • 1,914
  • 3
  • 32
  • 53
  • Your jsfiddle almost kills my browser. Anyway, have a look at http://stackoverflow.com/questions/7443578/youtube-iframe-api-how-do-i-control-a-iframe-player-thats-already-in-the-html – Jan Petzold Dec 18 '12 at 16:31
  • It must be an instant problem. Because fiddle works on mine without any sweating. – mcan Dec 18 '12 at 16:53

0 Answers0