Mostrar mensagens com a etiqueta Flash. Mostrar todas as mensagens
Mostrar mensagens com a etiqueta Flash. Mostrar todas as mensagens

quinta-feira, 23 de abril de 2009

Flash and Red5 SandBox Problem Solved

So I started to build my Flash App. Everything went well. Then I tried to view my live video stream through another Flash App. So... What's next?

Major policy problem, cause I don't have any policy file for red5 server. Wrong, I do have and it's right there under red5/conf/flashpolicy.xml

You just have to add this line to your flash client program:

Security.loadPolicyFile("red5/conf/flashpolicy.xml");

It's amazin what a simple line of code can do.

This is for all of you who have the "SecurityError: Error #2123: Security sandbox violation: BitmapData.draw:" Error.