I've looking for the #2123 error on the web, and it seems I've to pass a Context instance to the URLRequest :
Something like this :
var context: LoaderContext = new LoaderContext() context.checkPolicyFile = true; context.securityDomain = SecurityDomain.currentDomain; context.applicationDomain = ApplicationDomain.currentDomain; loader.load( new URLRequest( video_url ), context ) Security.loadPolicyFile("http://server/crossdomain.xml");
But I don't know where to pass the context ...
And I don't really understand why I've a security error : the swf and the flv are on the same adress !
Thanks for any help
The snippet below works for me (in Strobe Media Playback from trunk) only after the video playback has started.
bitmapData = new BitmapData(200, 200);
bitmap = new Bitmap(bitmapData);
If you try to use it before the video starts, you'll get the security error that you describe.
For detecting the mediaPlayer state change, use a snippet like this:
private function onMediaPlayerStateChange(event:MediaPlayerStateChangeEvent):void
if (event.state == MediaPlayerState.PLAYING)
// Do your magic...
Please confirm if that solved your issue.
Merci et A+,
Thanks, it works now.
But I don't know why, before, even when the video was started, the error was still catch in my try / catch block ...
I think there is an error in the snipet, it seems to be :