Streaming Video with Red5 oflaDemo App
Posted on 27. Aug, 2009 by joshhrob in Server, Streaming
This is a quick and dirty demo to get started with the Red5 server.
In this demo, we will show how to stream video using the oflaDemo app that ships with the Red5 server.
The first step is to install/activate the app via the Red5 web GUI.
Open a browser and navigate to http://IPADDRESS:5080 and click on the link: Click here to install demos

On the installation screen, select oflaDemo and press the Install button

The streaming files go in the directory /usr/share/red5/webapps/oflaDemo/streams/
To make sure this directory is writable, log in via the console and execute the following command:
sudo chmod 777 /usr/share/red5/webapps/oflaDemo/streams/

Copy the flv file to be streamed to the red5 server. In this example we use WinSCP (Any SCP/SFTP will do ie filezilla, etc).

Now configure a flash video player to point to the red5 server. In this example we will use the Longtail JW Player, which can be configured automatically using the wizard on their website.

There are 2 flash variables that are required. file is the flv file, and streamer is the url to the red5 server and the application path. In this example we will use ESXi.flv and rtmp://builddocs.com/oflaDemo

Here is the working demo:
Please leave questions or comments below.
Print This Post
|









7 Comments
skyhyc
27. Oct, 2009
hi
I have installed demos,and there is a HTML file named “publisher.html”
in Red5\webapps\root\demos,
could you tell me how to use this file to receive a flv video from RED5 server?
joshhrob
29. Oct, 2009
Open your browser and goto: http://YOURIPADDRESS:5080/demos/publisher.html
You must have flash installed.
In the Name field enter the name of a flv file and
the location field should point to your Red5 server.
Assuming you are pointing to the oflaDemo app you would copy the flv file in \webapps\oflaDemo\streams and use rtmp://localhost/oflaDemo for the Location.
Amy
03. Jun, 2010
hi
I have installed demos,and there is a HTML file named “publisher.html”
in Red5\webapps\root\demos,
could you tell me how to use this file to receive a flv video from RED5 server?
abbas
11. Jun, 2010
Web i run the oflaDemo from the demos it give the error
(3395) NetConnection.onStatus:
description = No scope ‘oflaDemo’ on this server.
code = NetConnection.Connect.Rejected
level = error
Lox
22. Mar, 2011
Hi i have the demos all installed and working,(dont ask me how as i am very new to red5 … and server root acess in gen) but i cant seem to get it to work in the way that i would like…..
I just want to be able to display a live cam feed in a flash player, no sound , no recording , no play back , just plane simple cam.
Rob
22. Mar, 2011
Lox, you will need a client to broadcast the stream from your cam to the Red5 server. I believe you can use VLC for this (http://www.videolan.org/vlc/). Goto File -> Streaming. Under network put the address of the Red5 server (rtmp://yourserver/oflaDemo). Then select your camera under Capture device.
admin
22. Mar, 2011
We will be updating these docs soon for Red5 0.9.1. We will try to include some tutorials for this
Leave a reply