Category Archives: Red5 Webapps Online Application Generator

creating a new app on Red5 for live streaming

We will call this app live221.

first of all download the folder live from red5, the path is /usr/local/red5/webapps

if you ftp to the server you will see these apps.

then rename the folder live to live221

open the folder and go inside \WEB-INF folder, there are 3 files there, you need to change 2.

1- file: red5-web.properties
2 – file: web.xml

open on a text editor red5-web.properties , you will see the 2 lines below:
webapp.contextPath=/live
webapp.virtualHosts=*

change it to:

webapp.contextPath=/live221
webapp.virtualHosts=*

now open the second file web.xml the code on top:

red5 live app

upload the new folder, restart the Red5

go to the Red5 admin area and you will see the new app.

Getting Event Cue Points to work with Red5 0.8 and Red5 0.9.1

I’ve written a flash app (in AS3) that streams video to a red5 server (over RMTP of course) and embeds event cue points into the stream. The red5 server is using the OFLA demo that comes with red5, which converts the streams to FLV files. I then have another flash app that reads the FLV (over HTTP in this case not RTMP) and calls a function when an event cue point is reached while playing the FLV.
Now – the code you need to write to ensure that the cue points get properly written into the FLV depends on what RED5 version you are running. The code I’m talking about is the AS3 code in the app that streams the video. When you want to insert an event cuepoint you need to format the “send” function call with the following code (where ns is the netstream object):


For Red5 0.8

ns.send(“onCuePoint”, cueData);

For Red5 0.9.1

ns.send(“@setDataFrame”, ”onCuePoint”, cueData);

And thats pretty much it. And the other thing you need to ensure is that when you are setting up your netconnection, make sure you are using AMF0 encoding. I noticed this is needed for cue points to be added successfully in the right format.

nc.objectEncoding = flash.net.ObjectEncoding.AMF0

Jeremy is the webmaster of http://builderscrack.co.nz

Red5 Webapps Online Application Generator

The Red5 Webapps Online Application Generator is a very simple but effective utility to generate Red5 application online. This application gives you the power to create red5 applications without having any knowledge of programming. You can generate streamer applications, with live broadcasting, streaming, recording and shared-Object capabilities in a single click. No compiling/editing needed.

The application takes configuration inputs using a simple flash based front end, and generated red5 application for you by injecting those informations into a application template at runtime.

The generator is located here Red5/Webapps Application Generator.

How to use:

1. Select a Red5 application from the drop down list of available applications. You can read the description of the application in the description box, once you have selected a application.

2. Then enter the name of your rtmp application in the text input box provided below the application list drop down. (no spaces). This will be the context name that you will connect to : rtmp://server/appname

3. Below the description box, you will find the Stream Directory Path option. Use this to select between absolute/relative path schemes. This will set the location for recording/playing streams using the application. In many cases where you may want the streams directory to be on a location other than the default streams folder under red5, you can use absolute path scheme to specify the path to your custom streams directory.

To select a path scheme select one of the radio buttons .

4. Enter appropriate relative/absolute paths in the text input boxes.

For absolute path scheme on linux file systems , use : /home/……

For absolute path scheme on windows use : c:/…..

* Relative path schemes remain same for linux and windows , though you wont use ../ to traverse backwards in either.

5. Press Generate & Download button to generate the specific application from its application template.

6. Press ok when your are prompted to download your application.

7. You may also want to read the description text to kn ow more about the selected application before generating your own copy.

Keep checking back for newly added Red5 applications at:

http://flashvisions.com/