I have an Adobe Air application which plays a LIVE stream from a Wowza server.
My Air application captures video frames and uses them as textures in a 3D scene.
The problem is, I have an intermittent error
, when I call Bitmap.draw() on the video component.
(Error #2123: Security sandbox violation)
If I stop the stream and reconnect every 4 seconds (random time), on the N-th time, the Bitmap draws successfully. Once it draws successfully It works all the way through, until I next time I need to load a LIVE stream.
The problem does not occur with recorded, streams, so I'm convinced its not a configuration problem i.e. in application.xml or crossdomain.xml
The current situation:
- I have set videoSampleAccess to true (*)
- I have loaded the crossdomain policy file.
- Not drawing image when video buffering
PS: When I am running in debug mode, the problem NEVER occurs.
Could someone please suggest a solution.