Monday, 15 September 2014

actionscript 3 - Integrating a player youtube api v3 in air desktop application -



actionscript 3 - Integrating a player youtube api v3 in air desktop application -

i seek integrate youtube player in air application. utilize demo code simple test. https://developers.google.com/youtube/flash_api_reference#examples

but don't work me.

the first error was

securityerror: error #3207: application-sandbox content cannot access feature.

i set

security.allowdomain("www.youtube.com");

in try/catch. solve first error.

sadly i'm blocked whith sec error

* security sandbox violation * securitydomain 'http://s.ytimg.com/yts/swfbin/player-vflbockzz/apiplayer3.swf' tried access incompatible context

i add together loadercontext

var context:loadercontext = new loadercontext(); context.checkpolicyfile = true; context.applicationdomain = applicationdomain.currentdomain; context.allowcodeimport = true;

but don't solve problem.

is have idea?

i used next code in start , worked me

try {security.allowdomain("*");}catch (e) { };

actionscript-3 air youtube-api

No comments:

Post a Comment