Use the flvplayback component to play streaming FLV files of the FS ~

Source: Internet
Author: User
Tags flv file

Main. ASC File
C: \ Program Files \ Macromedia \ Flash 8 \ samples and tutorials \ samples \ Components \ flvplayback \ main. ASC

1. In your FCS ApplicationProgramCreate a folder named my_application.
2. Copy the main. ASC file to the my_application folder.
3. Create a folder named streams in the my_application folder.
4. Create a folder named _ definst _ in the streams folder.
5. Place your FLV file in the _ definst _ folder.
6. To access the FLV file on Flash Communication Server, use a URL such as rtmp: // my_servername/my_application/stream. FLV.

If the _ definst _ folder is not used and other folders such as myfolder are used, the access method is as follows:
Rtmp: // my_servername/my_application/myfolder/stream. FLV

Drag a flvplayback component into the scene and specify the Instance name as my_flvplybk.
Next, add the following to the first frame of the scene timeline:Code:

Import MX. Video .*;
My_flvplybk.buffertime = 7;
My_flvplybk.contentpath = "rtmp:/localhost/my_application/stream. FLV ";

Note: The Flash 8 + fcs1.5 environment has passed the test.

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.