Windows environment to build RED5 streaming media server

Source: Internet
Author: User

Windows environment build RED5 Streaming Media server guide

Test environment: Windows 7

First, Download installation program

    1. Red5-server

Https://github.com/Red5/red5-server/releases

    1. Jdk

Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    1. Red5 example (e.g. Oflademo), to FQ

http://red5.googlecode.com/svn/java/example/trunk/

    1. FlowPlayer

Https://codeload.github.com/flowplayer/flash/zip/release_3_2_18

http://releases.flowplayer.org/flowplayer.rtmp/flowplayer.rtmp-3.2.13.swf

Second, Installing the JDK

Third, setting Java environment Variables

1) on the desktop, right-click on the "Computer", in the pop-up menu, select the "Properties" option, pop Up the "System Properties" window;

2) in the "System Properties" window, click "Advanced" to switch to advanced System Settings tab, then click

"Environment variables" button, pop up the "Environment variables" window;

3) in the "Environment Variables" window, click on the user variable or the "new" button in the system change area, pop up the new variable window, then enter "variable name": Java_home, "Variable value": C:\Program files\java\jdk1.8.0_51.

Note: the "Variable Value" column mainly fills in the path where you install the JDK, which may vary depending on your individual situation.

4) After the previous step, double-click "Path" in the system variable, and in the Edit System variable window that pops up,

Add the following path at the front of the Variable Value column:

%java_home%\bin;%java_home%\jre\bin;

can also use the complete path, such as: C:\Program Files\java\jdk1.8.0_51\\bin;

Four, Installing Red5

Unzip the downloaded Red5 installation package (this guide downloads the zip installation package) and copy it to the directory you want to install, such as F:\red5\Test\red5-server-1.0.5

Note Do not copy into the program Files such as the middle of the folder with spaces, there is a space to start the path will be truncated errors: error: Could not find or load the main class Files\red5-server

Five, setting Red5 environment variables

Add Red5_home and Classpath, depending on how you set up your Java environment variables

Variable name: red5_home

Variable value: F:\red5\Test\red5-server-1.0.5 (here to adjust according to your installation directory)

Variable name: ClassPath

Variable value:. (this variable is not configured, or the value of this change is not ".", the Red5 startup process throws an exception)

Six, start Red5

Double-click the "Red5.bat" file to start Red5.

Seven, test whether the Red5 was successfully deployed

Enter http://localhost:5080/in the browser to open successfully, indicating that the Red5 deployment was successful.

Eight, test the application

After extracting the downloaded Oflademo.war file, place it in the WebApps directory in the Red5 deployment directory, such as F:\red5\Test\red5-server-1.0.5\webapps. This guide was tested with the directory name changed to OflaDemo2.

Oflademo.war:http://pan.baidu.com/s/1hqapl6o

Restart the Red5 server.

Then access the http://localhost:5080/oflaDemo2/in the browser, after successful opening, play the video on the page, if the smooth play, indicating that the application was deployed successfully.

Note: If you are accessing from another machine, change localhost to the IP of the server.

Nine, test video playback on the Red5 server with FlowPlayer on other machines

Copy the test sample to the machine you want to test, modify the Red5 server address and the video file name in the example, and open the flowplayer.html file in the test sample on the browser to see if the video plays properly.

Test Example: HTTP://PAN.BAIDU.COM/S/1DD8N8JF

Reference article:

Configuring Java environment variables under Win7
Http://www.cnblogs.com/zhj5chengfeng/archive/2013/01/01/2841253.html

Build Windows Red5 Streaming Media server
http://blog.csdn.net/keepingstudying/article/details/41980961

Windows environment to build RED5 streaming media server

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.