Red5 Research (I): Download, project establishment, oflademo installation, demo Testing

Source: Internet
Author: User

1. Download red5 and add the project to myeclipse

1, download red51.01 version from the official website (I downloaded the version of red51.0), download link http://www.red5.org/downloads/red5/1_0_1/

2. The structure of the downloaded file is as follows:

3. Decompress src.zip to the current directory. This is the source file of red5. Then add a new Java project in myeclipse. Add all files to this project.

4. For the red51.0 version, JDK should select the JDK 1.6 version. Otherwise, a socket error may occur. For red51.01, jdk1.7 is required.

 

2. Add oflademo and test oflademo

1. Open the src/org/Server/Bootstrap. Java file in the project and run this file in debug. This file is the main function entry.

2. Open http: // 127.0.0.1: 5080/. The following page is displayed. Indicates that the server is started normally.

3. Click Install to go To the demo installation directory http: // 127.0.0.1: 5080/installer/. Install the second demo, ofla demo.

4. Refresh the project and add more applications to the project. The files to be played are stored in the streams directory. I have stored an mpeg-4.mp4 file here. Then modify index.html. Change the file to be played to the file I want to play.

5. Then, access this demo to play the video, and drag and drop the video to play it anywhere.

 

 

 

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.