Youtube as3 API seems not functional anymore

I'm working with the as3 Youtube official API and I need to load the API Player in a swf file.

I've done it on several projects and everything was fine but since a few hours, all my projects are now broken.

Here's the piece of code that is crashing :

Security.allowDomain("www.youtube.com");
loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.INIT, playerLoaded);
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, playerError) ; 
loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3"));

An empty and not very helpful IOErrorEvent is now sent :

   [ErrorEvent type="onError" bubbles=false cancelable=false eventPhase=2 text=""]

As everything was OK yesterday, I've checked other flash sites using YoutubePlayer and they all seem damaged.

Is anyone running through the same issue? Youtube doesn't say anything about this.

To complete my request, even loading http://www.youtube.com/apiplayer?version=3 in my browser throws an debug player error! Thanks !


Youtube目前已经关闭,现在已经有大约一个小时了:http://downrightnow.com/youtube#refresh

链接地址: http://www.djcxy.com/p/66692.html

上一篇: RSpec规范伪造类常量的最佳做法或解决方法

下一篇: Youtube as3 API似乎不再起作用