Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share ChiefAlchemist.com. RSS 2.0 feed for ChiefAlchemist.com. 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 Diigo.com. Follow the Chief Alchemist on Digg.com. Chief Alchemist channel on Last.fm. 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.
CURRENT “TOP 10” TOPICS TOOLS CLIENTS & PROJECTS SOURCES SEARCH HIDE
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

Troubleshooting YouTube onYouTubeIframeAPIReady() and onPlayerStateChange()

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

https://developers.google.com/youtube/iframe_api_reference

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.

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