Bitmapdata.draw + NetStream.play( null ) = SecurityError
Hello,
Can someone help me, with this bug.
Problem Description:
While playing video in data creation mode ( play( null ); appendBytes( xxx ); ), if we try to bitmapdata.draw on video or video container, flash trrow error:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: app:/ApplicationName.swf cannot access null. No policy files granted access.
at flash.display::BitmapData/draw()
Steps to Reproduce:
1. Start NetStream in data creation mode( NetStream.play( null ); NetStream.appendBytes( xx );
2. Wait 30-60 sek to load buffer, or not( it does not matter )
3. Do Bitmapdata.draw( [Video or VideoContainer] )
Actual Result:
SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: app:/ApplicationName.swf cannot access null. No policy files granted access.
at flash.display::BitmapData/draw()
Expected Result:
We get bitmap data with current video frame image.
crossdomain:
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
We tried:
1. Add in main class: Security.loadPolicyFile("https://Application.com/crossdomain.xml");
2. Added NetStream.checkPolicyFile=true before the NetStream.play( null );
3. Add in main class:
try{
Security.allowDomain("*");
Security.allowInsecureDomain("*");
}catch ( e:Error ){
}
Nothing helped.
P.s. Sorry but i created this bug in bugbase.adobe.com three times, didn't see this warning:
