Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share RSS 2.0 feed for Sign up for the mailing list. Follow Chief Alchemist on Twitter. 'Like' the Chief Alchemist's page on Facebook. See what Chief Alchemist has been Q&A'ing on Quora. Chief Alchemist bookmarks & highlights on Follow the Chief Alchemist on Chief Alchemist channel on Chief Alchemist on Flickr. Mark 'Chief Alchemist' Simchock on LinkedIn. Free Initial Consultation. Email Chief Alchemist. Phone Chief Alchemist.
  • Mark ‘Chief Alchemist’ Simchock
  • 'Email me.Email => ca .at. ChiefAlchemist .dot. com
  • 'Phone me.Alchemy United => 732 997-0028
  • Free initial consultation.Free => Initial Consultation
  • Please be sure to subscribe to your communication channels of choice.
  • Click To Close => The small green (consultation), red (email) or blue (phone) icons in the top upper right.
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

Troubleshooting YouTube onYouTubeIframeAPIReady() and onPlayerStateChange()

FYI => “YouTube Player API Reference for <iframe> Embeds”

In typical Google documentation style there are a couple important details you’ll need to know that don’t exactly jump off the page—especially is you’re working as hard as you are skimming to get things working.

“If you do write the <iframe> tag, then when you construct the YT.Player object, you do not need to specify values for the width and height, which are specified as attributes of the <iframe> tag, or the videoId and player parameters, which are are specified in the src URL.”

And perhaps it’s somewhere in the YouTube API docs but for:

player = new YT.Player(‘player’,…

the ‘player’ (i.e., the one in quotes) is the id=” ” of your YouTube iframe object. Perhaps that’s obvious to seasoned YouTube API junkies but perhaps that’s not you.

Will not be published. Required.
Please include http://