|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IApplication
IApplication provides lifecycle methods that most communication applications will use. This interface defines the methods that are called by Red5 through an applications life.
| Method Summary | |
|---|---|
boolean |
appConnect(IConnection conn,
Object[] params)
Called per each client connect |
void |
appDisconnect(IConnection conn)
Called every time client disconnects from the application |
boolean |
appJoin(IClient client,
IScope app)
Called every time client joins app level scope |
void |
appLeave(IClient client,
IScope app)
Called every time client leaves the application scope |
boolean |
appStart(IScope app)
Called once when application or room starts |
void |
appStop(IScope app)
Called on application stop |
boolean |
roomConnect(IConnection conn,
Object[] params)
Called every time client connects to the room |
void |
roomDisconnect(IConnection conn)
Called when client disconnects from room scope |
boolean |
roomJoin(IClient client,
IScope room)
Called when user joins room scope |
void |
roomLeave(IClient client,
IScope room)
Called when user leaves room scope |
boolean |
roomStart(IScope room)
Called on application room start |
void |
roomStop(IScope room)
Called on room scope stop |
| Method Detail |
|---|
boolean appStart(IScope app)
app - Application or room level scope. See
IScope for details
true continues application run, false
terminates
boolean appConnect(IConnection conn,
Object[] params)
conn - Connection object used to provide basic connection methods.
See IConnectionparams - List of params sent from client with NetConnection.connect
call
true accepts the connection, false
rejects it
boolean appJoin(IClient client,
IScope app)
client - Client objectapp - Scope object
true accepts the client, false
rejects itvoid appDisconnect(IConnection conn)
conn - Connection object See IConnection
void appLeave(IClient client,
IScope app)
client - Client objectapp - Scope objectvoid appStop(IScope app)
app - Scope objectboolean roomStart(IScope room)
room - Scope object
true if scope can be started, false
otherwise
boolean roomConnect(IConnection conn,
Object[] params)
conn - Connection objectparams - List of params sent from client with NetConnection.connect
call
true accepts the connection, false
rejects it
boolean roomJoin(IClient client,
IScope room)
client - Client objectroom - Scope object
true accepts the client, false
rejects itvoid roomDisconnect(IConnection conn)
conn - Connection object used to provide basic connection methods.
See IConnection
void roomLeave(IClient client,
IScope room)
client - Client objectroom - Scope objectvoid roomStop(IScope room)
room - Scope object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||