Solution to Bitmapdata.draw () error in rtmp video stream

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.