Skip to main content
Participant
February 18, 2013
Question

Bitmapdata.draw + NetStream.play( null ) = SecurityError

  • February 18, 2013
  • 3 replies
  • 4479 views

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:http://gyazo.com/d0e3b5d6c9f52309d7646e510c542457.png?1361175346

This topic has been closed for replies.

3 replies

Robert Mc Dowell
Legend
January 15, 2018

for now add

play(null);

play('');

between a try{}catch{}

Known Participant
July 5, 2013

Any solution to this one yet. I looked up bug 3501559 on https://bugbase.adobe.com but didn't find it.

chris.campbell
Community Manager
Community Manager
August 24, 2013

Is this issue still occurring with AIR 3.8?  Bug 3501559 was marked as a "security" bug when entered and those aren't publicly visible.  Unfortunately, this isn't the type of security bug we'd consider private but I'm unable to unblock it for public viewing.

It's probably best to open a new bug report, but I can also point the team to this forum thread if you'd like to provide additional information here.

robotcoder
Participant
August 26, 2013

This bug is still a problem on iOS when the project is compiled with AIR 3.8.

Participant
February 26, 2013

Hey, it's the same problem that i wasn't able to fix.

This looks like Flash doesn't allow to capture stream. Let's to adobe's guys fix this issue soon.

chris.campbell
Community Manager
Community Manager
February 27, 2013

Thanks for adding the bug report.  The first report number was 3501559.  I've asked someone on the team to take a look.

April 29, 2013

I would love to hear that this is fixed. This is another one of those goofy issues that makes me wish I was not stuck working with Air on my current video project.