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.