Stream Flash format -- FLV

Source: Internet
Author: User
Tags flv file
Before Flash MX, the video files in flash must be imported into a bitmap frame by frame. As a result, the file is huge and its application scope is limited.
With the launch of Flash MX, Macromedia developed its own stream video format-FLV. This format is compressed by Sorenson. Algorithm . Sorenson also provides algorithms for mov format.
The FLV format not only allows you to easily import hundreds of frames into flash, but also allows you to stream videos from the flash COM server using the rtmp protocol.

Currently, there are two types of FLV format conversion software on the market. Http://download.com.com/3120-20-0.html? Qt = FLV & Tg = dl-2001
Next, let's look at two methods for playing FLV:
1. Embedded playback:
This method is relatively simple. Click Import under the file option and select the file you want. You will feel that the import speed is very fast.
2. Stream playback:
A) First, install the flashcom server. After the installation is complete, a directory named Flash Communication Server MX is generated. Next, you need to create your own application folder under this directory: C: \ Program Files \ Macromedia \ Flash Communication Server MX \ flashcom \ applications. for example, our directory is called eLearning. the following step is very important. We put the FLV file into this directory, C: \ Program Files \ Macromedia \ Flash Communication Server MX \ flashcom \ applications \ eLearning \ streams \ _ definst _. okay. In this way, we have completed the first step.
B) Next, start coding and making Flash files. Press F11 to open the library panel. On the top right menu, select new video. Drag the object to the stage. Take an Instance name "myvideo ". On the first frame, add the following Code .
# Include "netdebug. as "Stop (); NC = new netconnection (); NC. connect ("rtmp:/eLearning"); newstream = new netstream (NC); myvideo. attachvideo (newstream); newstream. play ("FLV file"); All right! In this way, you can stream your video files!

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.