| javascript Programming Glossary: playeridYouTube Player API: How to get duration of a loaded/cued video without playing it? http://stackoverflow.com/questions/2086260/youtube-player-api-how-to-get-duration-of-a-loaded-cued-video-without-playing-i  Error occurred errorCode  function onYouTubePlayerReady playerId ytplayer ytplayer playerId ytplayer.addEventListener onStateChange..  function onYouTubePlayerReady playerId ytplayer ytplayer playerId ytplayer.addEventListener onStateChange myOnPlayerStateChange.. 
 Using Youtube's javascript API with jQuery http://stackoverflow.com/questions/786380/using-youtubes-javascript-api-with-jquery  call back to a global function called onYouTubePlayerReady playerId . You can then use that id combined with getElementById playerId.. . You can then use that id combined with getElementById playerId to send javascript calls into the flash player ie player.playVideo.. this .append div  jQuery function onYouTubePlayerReady playerId var player '#' playerId 0 player.addEventListener 'onStateChange'.. 
 |