Google offers a powerful API for developers wishing to integrate Youtube videos with their applications. Despite the usefulness of these functions, exploring Google's documentation leaves you feeling like you've wasted hours wading through a sea of information, only to find that there wasn't a single practical example for you to use. So, here is a good example of the Youtube API without all of the fluff:
function onYouTubePlayerReady(playerId) { var myplayer = document.getElementById(playerID); }
Hopefully this introduction to the Youtube API can help you to avoid the endless searching through Google's instructions, and let you get down to writing some creative applications!
<object width="480" height="390"> <param name="movie" value="http://www.youtube.com/v/BV2aIRzaJZ4?fs=1&amp;hl=en_US"></param> <param name="allowFullScreen" value="true"></param> <param name="allowscriptaccess" value="always"></param> <embed src="http://www.youtube.com/v/BV2aIRzaJZ4?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="390"></embed>