That code doesn't work when run inside jsfiddle because the onLoad()
wrapper around your JavaScript is causing your
onYouTubePlayerAPIReady() function definition to take place outside of
the global "window" scope. If you want to keep it as-is you can define
your callback as follows:
window.onYouTubePlayerAPIReady = function() { //your code here };
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Mar 4, 4:30 pm, toniair <antepredo...@gmail.com> wrote:
> I am using this code:
>
> http://jsfiddle.net/GeNXH/13/
>
> And I cant get the api.
>
> What am I doing wrong?
>
> Thank you!
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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