Dear All ,
I neet to
1.grab snapshots from the server stream but get the following error
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:
file:///C|/Documents%20and%
20Settings/Administrator/My%20Documents/Flex%20Builder%203/ScreenShootTest/bin%2Ddebug/ScreenShootTest.swf
cannot access rtmp://localhost/SnapShot. No policy files granted access.
at flash.display::BitmapData/draw()
at
profilePageControl.videoControls::TomographPaneControl/snapshotHandler()[C:\Documents
and Settings\Administrator\My Documents\Flex Builder
3\ScreenShootTest\src\profilePageControl\videoControls\TomographPaneControl.as:102]
snapshots are grabbed and saved on the sever as .jpg perfectly when I do
it directly from the captured web cam stream .Probably the problem is in
Flash Player's (I'm using FP 9) security settings. On red5's root directory
there is a crossdomain.xml file wich restricts to use sevrer's resources
from different domains. FP seeks to that file to get information about
access grants .As far as I know this is the default file that FP looks
for.Here my crossdomain.xml
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM
"http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
I tried to creat my custom crossdomain.xml and placed it into Snapshot
application directory then loaded it via Security.loadPolicyFile("
http://localhost:5080/SnapShot/crossdomain.xml"): But this variant did not
work also .Is there any mechnaism to be ensured whether this file is loaded
successfully or no?
2. to load saved .jpg images from the red5 server into my AS3/Flex front
end. I have Red5/webapps/Snapshot/user.jpg and want to load it by
imag.source="http://localhost:5080/SnapShot/user.jpg" ,
and got nothing.
What I'm doing wrong , please give a hint
Thanks
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org