RED5 vs FMS – Part 1
Red5 and FMS features in comparison
Following are few of the functions and properties of RED5 and FMS in comparison. In most of the aspects you will find Red5 to be slightly more complicated but far more powerful than Flash Media Server. The Red5 Team is working on bring around SSAS (Server side actionscript) to actionscript programmers who may not be very fond of java. Its expected to come put with the first grand release of Red5 ‘s version 1.0.
| Some FMS Handler Functions | Equivalent Red 5 Handler Functions | Comment |
| application.onAppStart() | appStart() | Executed by server when a application starts. |
| application.onAppStop() | appStop() | Executed by server when a application stops. |
| application.onConnect() | appConnect() | Executed by server when a client connects to the application. |
| application.onDisconnect() | appDisconnect() | Executed by server when a client disconnects from the application. |
| application.onPublish() | streamPublishStart() | Executed by server when a stream starts publishing to server. Note that publishing may be live / record. |
| Few FMS Features | Equivalent Red 5 Features | Comment |
| application.hostname | IConnection conn = Red5.getConnectionLocal();conn.getHost(); | Gets the host name that the RTMP connection is made to |
| application.name | IConnection conn = Red5.getConnectionLocal();conn.getPath(); | Gets the application name(fms) / path(path) by the RTMP connection url. |
| Client.id | IConnection conn = Red5.getConnectionLocal();conn.getClient().ID; | Gets client id to uniquely identify client |
| Client.ip | Connection conn = Red5.getConnectionLocal();conn.getRemoteAddress(); | Gets client IP address |
| NA | Connection conn = Red5.getConnectionLocal();conn.getRemotePort(); | Gets client port |
The Red5 Application Class:
The Core class or the Application class in Red5 is your entry point into red5. This is where your flash client meets the server. The application class typically extends ApplicationAdapter or the
MultiThreadedApplicationAdapter (in the new api).
A Sample application class with info
import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.IConnection;
import org.red5.server.api.IScope;
import org.red5.server.api.IClient;
import org.red5.server.api.Red5;
import org.red5.server.api.stream.IBroadcastStream;
import org.red5.server.api.stream.ISubscriberStream;
{
// executed when client disconnects
public synchronized void disconnect(IConnection conn, IScope scope) {
super.disconnect(conn, scope);
}
// executed when application starts
public synchronized boolean appStart(IScope app) {
return super.appStart(app);
}
// executed when client connects
public synchronized boolean connect(IConnection conn, IScope scope, Object[] params) {
return super.connect(conn, scope, params);
}
// executed when application stops
public synchronized void appStop(IScope app) {
super.appStop(app);
}
// executed when client connects to application
public synchronized boolean appConnect(IConnection conn, Object[] params)
{
return super.appConnect(conn, params);
}
// executed when client disconnects from application
public synchronized void appDisconnect(IConnection conn)
{
super.appDisconnect(conn);
}
// executed when client starts publishing a stream to application (live / record)
public synchronized void streamPublishStart(IBroadcastStream stream) {
super.streamPublishStart(stream);
}
// executed when client starts publishing a stream to application in record mode
public synchronized void streamRecordStart(IBroadcastStream stream) {
super.streamRecordStart(stream);
}
You application class can be more complicated than this depending on your requirements.
Popularity: 16% [?]
October 14, 2009
Tags: Red5, RTMP, Streaming, Video Posted in: General, Red5, RTMP




33 Responses
Optic - March 9, 2011
Affordable Web Hosting…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Kitesurfing Kites - March 9, 2011
Kiteboarding Equipment…
[...]the time to read or visit the content or sites we have linked to below the[...]…
Mints - March 10, 2011
Interesting Commonality…
[...]please visit for prior reference, as this is quite important to our mission[...]…
how to get ripped fast - March 10, 2011
how to get ripped fast…
[...]The rate of which you get individuals smooth, minimize, cut as well as chiseled ab muscles may largely rely on your self-control to sticking to the lowest fat eating habits as well as upping your physical exercises[...]…
Best Weight Loss Programs - March 11, 2011
Eat Stop Eat…
[...]the inclination to go through the destinations I have pointed out just below[...]…
Kasper Suits - March 13, 2011
Kasper Suits…
[....Proceed here to take part in our WordPress Link campaign.....]…
הכרויות בטלפון - March 13, 2011
הכרויות בטלפון…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Scholarships For Minorities - March 13, 2011
Scholarships For Minorities…
[...please consider link exchange to benefit web ratings..]…
Soundmax Driver Windows 7 - March 13, 2011
pc Drivers…
[...]give this great site a try, we discovered some very helpful detail around this issue[...]…
Wrinkle Cream Reviews - March 13, 2011
Wrinkle Cream Critic…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Taylor Armstrong - March 13, 2011
Taylor Armstrong Suggests It is A Fantastic Write-up Cool…
In your own time try to read this a few might be of appeal to you also,…
Wedding Suits For Women - March 14, 2011
Kasper Suits…
[...Be Sure to Accept This Swapping Request...]…
Buy Folding Tables - March 14, 2011
Folding Tables…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Magniwork - March 19, 2011
Magniwork…
I’m reading this post from my I-Phone and it looks great! I like your writing style and you make some excellent points about $keyword….
backlinks - March 21, 2011
Ledlights Nucash.nl Fantastico…
[...]Het energie verbruik van een lamp wordt afgegeven in licht en warmte[...]…
Memphis Personal Injury Attorney - March 23, 2011
Get a Lawyer…
[...]just below you shall discover the URL to a couple places that we think you could go to[...]…
Kasper Suits - March 23, 2011
Kasper Suits…
[...very interesting and I'm planning to put it to use on my online site, regards..]…
Cat Suits For Women - March 23, 2011
Kasper Suits…
[...somewhat and I am going to use it at my personal website, thank you so much..]…
ceiling fan parts - March 23, 2011
Ceiling Fan Parts…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Quotes - March 25, 2011
modular garages…
[...]the time to read or visit the content or sites we have linked to below the[...]…
generic viagra - March 27, 2011
Hello!…
[...]You made some clear points there[...]…
Conveyancing Solicitor - March 28, 2011
Conveyancing Solicitors…
[...]below you’ll find the link to some sites that we think you should visit[...]…
Conveyancing Solicitors - March 28, 2011
Conveyancing Solicitors…
[...]below you’ll find the link to some sites that we think you should visit[...]…
la ink tattoos - March 29, 2011
Trackback, Thanks very much…
la ink tattoo designs, has linked to your web page….
train horns - April 1, 2011
Amazing site…
[...]the time to read or visit the content or sites we have linked to below the[...]…
Approved - April 1, 2011
…
[...]are our favorite sites of our friends[...]…
golf paintings - April 3, 2011
richard chorley golf…
Thanks for such an excellent page, bookmarked, ill visit soon!…
safety sign - April 4, 2011
safety signs…
Thanks for such an excellent page, bookmarked, ill visit soon!…
laptop charger - April 4, 2011
laptop charger…
Thanks for such an excellent page, bookmarked, ill visit soon!…
Dremel Stylus - April 6, 2011
Dremel Stylus…
Bookmarked your site, so I can visit frequently, thank you!…
Hunstanton - April 6, 2011
Hunstanton…
Trackback, I have linked to your site, thank you!…
bad credit car loans - April 7, 2011
tv tray tables…
[...]Sites of interest we like to link to[...]…
market place - April 7, 2011
market place…
Trackback, I have linked to your site, thank you!…
Leave a Reply