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 is currently down, and has been for about an hour now: http://downrightnow.com/youtube#refresh
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With