Source on GitHub
This exception is thrown when the video stream in Flash Media server is drawn using Bitmapdata.draw ():
Cannot access rtmp://xxxxx. No policy files granted access. At Flash.display::bitmapdata/draw ()
This error occurs because the client (SWF) does not have permission to replicate the original video data in NetStream. To see a hint, a policy file is needed.
However, in the FMS server can not place the policy file, FMS can not like the socket server to send policy files to the client, this situation should be how to deal with it?
Here's the answer:
http://help.adobe.com/en_US/flashmediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7ec3SSASLR.html# Ws5b3ccc516d4fbf351e63e3d11a11afc95e-7fcbssaslr
It is only necessary for the FMS to set the Videosampleaccess property for the client after agreeing to connect to it. The videosampleaccess is set up in the same way as readaccess.
Main.asc
P_client.audiosampleaccess = "/";
P_client.videosampleaccess = "/";
Solution to Bitmapdata.draw () error in rtmp video stream