Log in

View Full Version : make only one youtube video playing



bd0
06-20-2008, 03:02 PM
i have a webpage with serveral embedded youtube videos.
how is it possible to stop a playing youtubevideo when i click at another one. i want to avoid that multiple videos are played at the same time.
can i reset all contained youtube videos before playing the new one?
i want to combine this with Virtual Pagination script http://www.dynamicdrive.com/dynamicindex17/virtualpagination.htm to split the different videos on "pages".

thanks in advance!

bd0

bd0
06-26-2008, 11:37 PM
is there nobody who can help me with this problem, or is it just posted in the wrong category? :confused:

jscheuer1
06-27-2008, 12:06 AM
I'll move it to Flash for you. It would probably do better there.

Medyman
06-27-2008, 02:23 AM
John, actually this is more of a JavaScript question.

Well, you could implement a Flash-only solution, but since the Youtube player is going to be embedded within HTML (instead of within another Flash player, for example), it makes more sense to use JavaScript.

bdo, you will need to look into the YouTube JavaScript API (http://code.google.com/apis/youtube/js_api_reference.html). To enable an API with your videos, simply add &enablejsapi=1 to the end of your YouTube video URIs. Then you can manipulate the YouTube videos via JavaScript.