YouTube Javascript API loadVideoByID error in Internet Explorer

Hope someone can check this out or shed some insight.

The most basic use of the player.loadVideoByID () method does not seem to work in IE.

I deployed the code to run google, starting with:

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

to my site to illustrate the problem.

You can use this link and view the source to easily see it in action.

http://www.fuhshnizzle.com/YT.html

You will also notice that the sample, which automatically starts in chrome, ff and safari, just shows the play icon in IE. So these are really 2 errors.

No autoplay and loadVideoByID () throws an exception in all versions of IE.

I wrapped the call to the loadVideoByID () method in a try catch, and you can see that it no longer works in IE, but works fine in chrome, ff and safari.

I would suggest that this affects any IE YT API application that uses this method call and therefore should be a top priority for the google / YouTube team. Since stackoverflow has the best developer response time, I thought I would call for support here.

Many thanks!

+5
source share

All Articles