02-11-2009 05:48 PM
I am currently getting this error message when trying to run my Flex 3 Air Application:
SecurityError: Error #3207: Application-sandbox content cannot access this feature.
at BrightcovePlayer/init()[/Users/user/Documents/Flex Builder 3/BrightcoveDesktop/src/BrightcovePlayer.as:51]
On line 51 of the BrightcovePlayer.as file:
I'm wondering if anyone has seen this error before, and has any solution.
I have run app, as a regular FLEX file with no problems at all, it only occurs when using the code in a FLEX 3 AIR application
Solved! Go to Solution.
02-13-2009 01:09 PM - last edited on 02-16-2009 09:33 AM by BC-Bob
Have you added:
to your base AIR class?
02-13-2009 02:52 PM - last edited on 02-16-2009 09:34 AM by BC-Bob
Thanks Eric, Although in all honesty I am just starting to get my feet wet with Flex 3 and have no idea where this should go. I do have this line howerever in my BrightcovePlayer.as:
is there somewhere else this should go, another file possible.
Thanks again for the help.
02-13-2009 04:31 PM
The security sandbox in AIR works different than the Flash Player one and Security.allowDomain() is expected to thrown the error you are getting when loading external content in AIR. You would need to use a sandbox bridge in AIR to load external content.
However if you are getting started with Flex 3, I would suggest to take a look at our example on how to embbed the BC player in Flex 3 (no AIR). This should allow you to start getting familiar with the Player API
03-09-2009 03:25 PM
I ran into the same problem trying to embed a Brightcove player to work in an AIR application. I tried messing around with a sandbox bridge but got stuck, so I instead used the Media API to access the FLV URLs directly (using the special FLVURL token), and just played them through a standard Flex VideoDisplay control.
In the future, it would be nice to be able to embed Brightcove players directly in an AIR application. Has anyone seen a good demo or tutorial for creating a sandbox bridge? There's one in Adobe's AIR documentation, but I couldn't get the code to work.
03-28-2009 07:36 PM