Wednesday, January 18, 2012

[YouTube-API] Youtube AS3 Api without logo

Security.allowDomain("www.youtube.com")
var my_player:Object;
var my_loader:Loader = new Loader();
public function ytPlayer() {
my_loader.load(new URLRequest("http://www.youtube.com/apiplayer?version=3&modestbranding=1")); 
my_loader.contentLoaderInfo.addEventListener(Event.INIT, onLoaderInit);
}
function onLoaderInit(e:Event):void{
addChild(my_loader); 
my_player = my_loader.content;
my_player.addEventListener("onReady", onPlayerReady); 
function onPlayerReady(e:Event):void{
my_player.setSize(640,360);
my_player.loadVideoById("_OBlgSz8sSM",0);


I am loading a youtube video inside a AS3 app, and want the youtube logo not to be visible. I have used modestbranding but still it shows the logo. Please suggest.

--
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/-/e0Ut_29ZpDUJ.
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