Flex 4 + red5 streaming media use research 1

Source: Internet
Author: User
Tags configuration settings

Due to project requirements, we have been studying streaming media applications for a long time in Flex 3. First, we have studied the configuration of the FMS, which is mainly used as a Streaming Media Server (the corresponding configuration has been mastered ), the application has been successfully applied. Later, when I read fluorinefx again (the server that flex interacts with. Net), I found fluorinefx also supports the rtmp protocol. So I wondered: Can I use fluorinefx as a streaming media server? If you can, you don't need to purchase the FMS, saving the project cost. For more information about fluorinefx, see fluorinefx.CommunityThe result shows that fluorinefx does not support streaming media services in the current version. Although its rtmp protocol is also based on red5, it will be supported by the next version, according to the community.

Because the leader is very interested in cost saving, I am eager to switch to the open-source Streaming Media Server red5. there are two reasons why I didn't directly choose it before: 1. There is little help, there are few instances; 2. I have never used Java for background development.

"What's the world, I'm afraid you'll study it !" After successfully applying the red5 example, I asked myself: "If you change the applicationProgramDirectory, do not use webapps ?" Continue to view its help documentation, search online, and finally solve the problem. We are now familiar with red5 as a Streaming Media Server.

The differences between Flex 3 and flex4 in streaming media:

1. flex3 needs to establish its own connection -- create Stream object -- operate Stream object (play, pause, stop) -- bind video and sound objects to a stream -- add it to the videoplayer control (write it from the bottom layer)

2. The video player control of flex4 has encapsulated the whole streaming media playing process, automatically identifying rtmp and HTTP protocols, and automatically distinguishing these two protocols.

3. flex3 videoplayer supports the HTTP protocol well, but does not automatically support rtmp, that is, it does not support streaming media.

The video player control of flex4 has greatly improved functions and styles compared with the original one. My colleague said that the player I made in the project is too ugly. I just wanted to introduce the video player function in flex 4.

Implementation: 1. Transfer the project to the Flash Builder 4 platform, failed! The main reason is that the library provided by ArcGIS still only supports Flex 3. The namecontrol is applied to the flex style, and I cannot change the style of the ArcGIS library. Therefore, after conversion, all GIS styles cannot be used, the interface is ugly.

2. failed to make the videoplayer. As file and related reference file into a separate library! The main reason is that there are too many documents, regulations cannot be straightened out, and documents are too coupled to be decoupled. Most of them are unique under the flex SDK 4.0 platform.

3. encapsulate the videoplayer control function into SWF and call the swf on the flex3 platform. An error occurred! The main reason is that the SWF also calls many related SWF, which involves platform incompatibility and some functions have been rewritten.

Finally, I gave up introducing the flex4 videoplayer control, turned to the beautification of the original functional interface, functional optimization, and introduced configuration settings. It seems that all my efforts in flex4 ended with failure. The leader asked me, "What is the research ??" I said, it's good. As my mentor once said, the results of my work prove that many schemes are not feasible.

Related Article

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.