Installation Guide for Red5

Red5 Media Server

Red5 is a leading open-source media streaming server implemented in Java , which provides services similar to those offered by the proprietary Adobe Flash Media Server, including:[

Download Red5:

Install JDK:

Set Window Environment Variables:

  • Set JAVA_HOME environment variable to C:\Program Files (x86)Java\jre6

Installation of RED5:

  • Run set-up file (setup-Red5-*.*.*.exe).
  • Default directory C:\Program Files (x86)\Red5.
  • IP Address Enter = 127.0.0.1
  • Port 5080
  • [PS] If you downloaded the Zip version of Red5 Installation File, just unzip it to the directory you want(Better put it to the ‘C:\Program Files’)
  • Run Red5 Service:
    • Get into the directory that you unzipped or installed the Red5
    • Double Click ‘red5.bat’ to run the Red5 Service.

    Test Red5 Installation:

  • Open URL http://localhost:5080/ (or ‘http://127.0.01:5080’)
  • RED5 page should appear which means the RED5 server has been installed successfully.
  • Click ‘Install a ready-made application’.
  • Install the ‘Shared object demo’.
  • Return to the Red5 Main page.
  • Click ‘Launch a demo’.
  • Open two ‘Simple Chat’ example with two new tabs.
  • Press the connect icon on both the pages.
  • Yellow light turns to green on successful connection.
  • Now write something to test the chatting sample.
  • Access RED5 external:
    • Assign correct ip in C:\Program Files (x86)\Red5\conf\red5.properties
    • Open firewall for port 1935 for RTMP and 5080 if you want to access the webserver
      (control panel – system and security – windows firewall – advanced settings – new inbound rule – port tcp)

    Tips:

    • When programming the Red5 Application, use the ‘red5-server-1.0.*.jar’ file from the installed Red5 directory, DO NOT DOWNLOAD IT FROM THE WEBSITE!
    • Most setting will be found at the ‘C:\Program Files (x86)\red5\conf\red5.properties’: such as ip, port, protocol stuff setting.
    • Red5 Applications will be installed to the ‘C:\Program Files (x86)\red5\webapps’ directory:
      • Use java to code the application and create WAR file with ‘J2EE’
      • Then put it to the ‘C:\Program Files (x86)\red5\webapps’ directory, restart the Red5, Red5 server will install the application automatically, and run it if that was successful. (PS. If the war file check interval is not that long, you may wanna wait for it rather close it.)
      • Change the ‘war.deploy.server.check.interval=600000’ to the less number in ‘# Server properties’ part from the ‘red5.properties’, if user want to deploy the webapps earlier.

[PS. In late version of red5, disable the bandwidth detection will be needed for the useless steps]

[Open the “red5.properties” file, and set the “rtmp.bandwidth_detection=false”]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s