org.red5.server.adapter
public interface IApplication
Modifier and Type | Method and Description |
---|---|
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
|
boolean appStart(IScope app)
app
- Application or room level scope. See
IScope
for detailstrue
continues application run, false
terminatesboolean appConnect(IConnection conn, Object[] params)
conn
- Connection object used to provide basic connection methods.
See IConnection
params
- List of params sent from client with NetConnection.connect
calltrue
accepts the connection, false
rejects itboolean appJoin(IClient client, IScope app)
client
- Client objectapp
- Scope objecttrue
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 objecttrue
if scope can be started, false
otherwiseboolean roomConnect(IConnection conn, Object[] params)
conn
- Connection objectparams
- List of params sent from client with NetConnection.connect
calltrue
accepts the connection, false
rejects itboolean roomJoin(IClient client, IScope room)
client
- Client objectroom
- Scope objecttrue
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 objectCopyright © 2006-2012 The Red5 Project