YouTube的AS3 API似乎不起作用了 [英] Youtube as3 API seems not functional anymore
问题描述
我的工作与AS3的Youtube官方的API,我需要加载API播放器中的SWF文件。
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.
下面是一张code的崩溃:
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"));
这是空的,而不是非常有帮助IOErrorEvent现在发送:
An empty and not very helpful IOErrorEvent is now sent :
[ErrorEvent type="onError" bubbles=false cancelable=false eventPhase=2 text=""]
由于昨天的一切是美好的,我用YoutubePlayer检查等Flash网站,他们似乎都受损。
As everything was OK yesterday, I've checked other flash sites using YoutubePlayer and they all seem damaged.
通过同样的问题跑的人? YouTube不说这事。
Is anyone running through the same issue? Youtube doesn't say anything about this.
要完成我的要求,甚至是装载 http://www.youtube.com/apiplayer?version=3在浏览器中抛出一个调试播放器错误! 谢谢 !
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
Youtube is currently down, and has been for about an hour now: http://downrightnow.com/youtube#refresh
这篇关于YouTube的AS3 API似乎不起作用了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!