http://www.facebook.com/thehalogroupNY?sk=app_149591121776137
It uses the Javascript API to display different videos when you click a thumbnail. It works in Safari, Chrome, and even IE8, but not in Firefox. The initial embed works, so you can see the first video, but subsequent calls to cueVideoByID() throw the following error in Firefox:
myytplayer.cueVideoById is not a function
myytplayer.cueVideoById(id);Where id is the YouTube video id.
Here is a simplified version of the function in question
function swapVideo(id) {
myytplayer = document.getElementById("ytPlayerIDHere");
myytplayer.cueVideoById(id);
}
Not sure why Firefox alone is causing an issue. Anyone have an idea? Could it be something about how FF handles Javascript? Is there any way I can cast the YT player instance so that Firefox does not think I am trying to call a Javascript method that I have not declared?
Any help would be greatly appreciated!
Thanks in advance,
Augie
--
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/-/UzR0RXBLV3hpck1K.
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