# BitmapData/draw() raises Security sandbox violation in Wowza 1.6, please help

**URL:** https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565
**Category:** Wowza Streaming Engine
**Created:** [February 27, 2009, 2:35pm UTC](https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565 "2009-02-27T14:35:43Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [February 27, 2009, 2:35pm UTC](https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565/1 "2009-02-27T14:35:43Z")

</div>

Dear all,

I have Wowza 1.6 running on the same machine which hosts the swf client. I need to grab a frame from the flash video. The error I get is

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: [http://localhost/testApp.swf](http://localhost/testApp.swf) cannot access unknown URL. No policy files granted access.

Why am I getting this error when both Wowza and the client are on the same machine? I have fiddled with crossdomain.xml and that has not helped. Furthermore the code works fine on Flash Media Server 3 and older versions of Wowza. What do I need to change in Wowza? I have set “StreamVideoSampleAccess” to \* in conf/Application.xml and still no success.

I guess if I can figure out why it says “No policy files granted access.” then I can crack it.

Thanks

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [February 27, 2009, 8:04am UTC](https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565/2 "2009-02-27T08:04:18Z")

</div>

This is what works for me. You will need to struggle with it. I have found it to be a pain in the you know what.

Do the following:

- Install the **examples/FastPlayVideoStreaming** example

- Edit **[install-dir]/conf/fastplay/Application.xml** and change the **Client/Access** section to look like this:

- In Flash CS3 create a new ActionScript 3.0 movie and add a video object to the library then to the stage. Name it **videoObj**. Add a button to the stage and name it **snapshotBut**.

- Add this ActionScript code:

---

<div class="post-metadata">

### Author: ![Ernest\_Fakudze](https://avatars.discourse-cdn.com/v4/letter/e/b19c9b/32.png) [@Ernest\_Fakudze](https://community.wowza.com/u/Ernest_Fakudze)
#### Post date: [March 1, 2009, 8:01pm UTC](https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565/3 "2009-03-01T20:01:13Z")

</div>

Thanks Charlie. It was actually one line of code in my app that was preventing the frame grab. Just before grabbing the frame the code was calling

```auto
videoObj.attachNetStream(null);

```

. Please note that I inherited the code from a developer who has left but I’m glad that I’ve finally tracked down the problem. Thanks again for taking your time to help.

Kind regards,

Ernie

---

<div class="post-metadata">

### Author: ![zhou\_lin](https://avatars.discourse-cdn.com/v4/letter/z/e36b37/32.png) [@zhou\_lin](https://community.wowza.com/u/zhou_lin)
#### Post date: [June 19, 2014, 1:10am UTC](https://community.wowza.com/t/bitmapdata-draw-raises-security-sandbox-violation-in-wowza-1-6-please-help/565/4 "2014-06-19T01:10:52Z")

</div>

Now,After 5 years.However, I encountered this problem either.

Thanks Charlie. According to his method, I solved the problem.

[http://blog.vini123.com](http://blog.vini123.com)🙂
