Monday, January 9, 2012

[YouTube-API] iFrame API with iFrame already in place seems to break page

I'm trying to implement the basic iFrame API as is but with the iFrame already in place as described in the documentation. My end goal is to have JS "dynamically" generate different videos so this is why I can't hard code the embed code in as in the first example given. But on the site I'm developing, the onYouTubePlayerAPIReady() never seems to be called, and also, anything after the iFrame is not rendered. 

I put up a similar example to what I'm building here: http://web.mit.edu/eipark/Public/test.html

There should be text before and after the video, but the text after doesn't render even though its in the source code. I assume something in the iFrame is killing the loading of the page? I may be doing something really stupid, but I tried to basically do verbatim what was in the documentation. Am I missing something or is this way of getting the videos buggy? The more standard way with just an empty div works fine for me.
 

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/9a-NMFSGGtoJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment