Flow FLASH format - FLV

xiaoxiao2021-03-06  75

Flash MX Previously, the video file in Flash is imported as a frame of one frame to become a bitmap. The result is huge, limiting its application range.

With the launch of Flash MX, Macromedia has developed its own streaming video format - FLV. This format is developed based on the compression algorithm of Sorenson. Sorenson also provides an algorithm for the MOV format.

The FLV format can not only be easily imported into Flash, but hundreds of frames of filters are two seconds; while also broadcast from the Flashcom server through the RTMP protocol. Http://www.sky-link.net.cn/course/flash/root/course33.htm This is the broadcast effect, but it is more smooth!

There are two types of conversion software in the FLV format now. The download address is as follows: http://download.com.com/3120-20-0.html? Qt = flv & tg = DL-2001

Below, let's take a look at two ways to play FLV:

1, embedded play:

This method is relatively simple, click Import under File Options, then select the file you want. You will feel that the speed of import is very fast.

2, flow play:

a) Of course, first you have to install the Flashcom server. After the installation is complete, a directory called Flash Communication Server MX will be generated. Next, you have to build your own application folder, below this directory: C: / Program Files / Macromedia / Flash Communication Server MX / FLASHCOM / Applications. For example: our directory is called Elearning. The following steps are critical, we take the work of the FLV file into this directory, c: / program files / mcRomedia / Flash Communication Server MX / FLASHCOM / Applications / ElearNing / Streams / _Definst_. All right. In this way, we have completed the first step.

b) Next, start the encoding and production of the Flash file. Press F11 to open the library panel, on the menu of the right foot, select New Video. Drag this object onto the stage. Take an instance name "MyVideo". On the first frame, add the following code.

#include "netdebug.as" stop (); nc = new netcomnection (); nc.connect ("RTMP: / Elearning"); newstream = new netstream (nc); MyVideo.attachVideo (NewStream); newstream.play (" FLV file "); Ok! This will play your video files flow!

转载请注明原文地址:https://www.9cbs.com/read-92960.html

New Post(0)