Skip to main content
Inspiring
March 31, 2011
Answered

Security sandbox violation while drawing video from CDN on BitmapData

  • March 31, 2011
  • 1 reply
  • 1061 views

Hi all,

I'm getting this one:

Error #2123: Security sandbox violation: BitmapData.draw

while I try to draw the image of a video from a rtmp server onto a BitmapData object. The workarounds I've found all apply to a SWF file being loaded from another domain. This involves having logic in that file. However, I see no possibility to place logic into the video and hardly have access to the (WOWZA) video server of which there are multiple and to me unknown ones at forehand due to the CDN's load balancing nature.

Does anyone know of any work around?

Thanks in advance,

Manno

This topic has been closed for replies.
Correct answer Andrei1-bKoviI

If you don't have access the server and your CDN is not willing to help - there is no workaround for rtmp streams.

On the SERVER SIDE, Client.videoSampleAccess must be set.

Note, that ENTIRE display list that contains video that streams an asset with disallowed videoSampleAccess is not accessible for BitmapData.draw.

1 reply

Andrei1-bKoviICorrect answer
Inspiring
March 31, 2011

If you don't have access the server and your CDN is not willing to help - there is no workaround for rtmp streams.

On the SERVER SIDE, Client.videoSampleAccess must be set.

Note, that ENTIRE display list that contains video that streams an asset with disallowed videoSampleAccess is not accessible for BitmapData.draw.

Inspiring
March 31, 2011

Thanks!

I'm working my way through some sort of 'chain of command' to the CDN host as we speak

In case anyone is interested: WOWZA (the server they run) has a similar setting in it's XML config files.

Manno

Inspiring
March 31, 2011

Well, any server (WOWZA, Red5, etc) that fetches rtmp streams has to have exactly the same settings because on client side (flash player) everything happens on NetStream instance - so settings must be uniform.