Skip to main content
Participant
Feb 18, 2013 8:24 AM UTC
Question

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

This topic is closed to new replies. Start a new post to keep the conversation going.

13 replies

Robert Mc Dowell
Legend
Jan 15, 2018 2:25 AM UTC

for now add

play(null);

play('');

between a try{}catch{}

Translate
Known Participant
Jul 5, 2013 2:06 AM UTC

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

Translate
chris.campbell
Legend
Aug 24, 2013 7:06 AM UTC

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.

Translate
robotcoder
Participant
Aug 26, 2013 2:42 AM UTC

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

Translate
Participant
Feb 26, 2013 8:15 AM UTC

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.

Translate
chris.campbell
Legend
Feb 27, 2013 1:29 AM UTC

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

Translate
Apr 29, 2013 10:07 PM UTC

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.

Translate