Hello Bret,
jsfiddle is wrapping your JS code in an anonymous function, and your
onYouTubePlayerReader function definition isn't in the global window
namespace as a result. If you run this outside of jsfiddle, make sure
you define your function in the global scope, or just modify your
current code to read
window.onYouTubePlayerReady = function(playerId)
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Jun 1, 8:29 am, bret <bret....@gmail.com> wrote:
> Hi!
> I have my code, copied from manual's example
> Here ishttp://jsfiddle.net/br3t/N8PUx/3/
> As you can see, video-player loaded, but event onYouTubePlayerReady
> not fired (no any alerts)
> Can I fix it?
--
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