Playing YouTube embedded videos consecutively on one page?

See code.google.com/apis/youtube/js_api_refe... You want to listen to the onStateChange event. Note that when the value passed is 0 then the video has ended. Listen for that event/value to start the next video Just a basic outline of what you probably want to do: add end listener for video play video when end event fired (and caught), go to next video and repeat from step 1.

See code.google.com/apis/youtube/js_api_refe... You want to listen to the onStateChange event. Note that when the value passed is 0, then the video has ended. Listen for that event/value to start the next video.

Just a basic outline of what you probably want to do: add end listener for video play video when end event fired (and caught), go to next video and repeat from step 1.

You could use a jQuery plugin -- the jQuery YouTube TubePlayer Plugin provided you have the right markup, (in this example - an an 'active' class on the video thats currently playing) you could basically set something up like.. jQuery("#player-container"). Tubeplayer({ onPlayerEnded:function(){ var $vid = jQuery(". Active").next(); if($vid.

Length){ jQuery('#player-container'). Tubeplayer('play',vid. Attr("vid"); $vid.siblings().andSelf().

RemoveClass("active"); $vid. AddClass("active"); } } }).

NirvanaTikku: I'm trying to implement your answer here: jsfiddle. Net/7VVpS/4 What am I doing wrong? – Keyslinger Nov 11 at 20:24.

You're going to want to create a playlist containing the videos you want to play and then embed that into your site. Direct instructions can be found here.

The videos are dynamic on the page. I was looking instead for some type of javascript event to play the video and detect when one finishes – Axsuul Feb 25 '10 at 19:04.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions