public interface IScopeHandler extends IEventHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChildScope(IBasicScope scope)
Called just before a child scope is added.
|
boolean |
connect(IConnection conn,
IScope scope,
Object[] params)
Called just before every connection to a scope.
|
void |
disconnect(IConnection conn,
IScope scope)
Called just after the a connection is disconnected.
|
boolean |
join(IClient client,
IScope scope)
Called just before a client enters the scope.
|
void |
leave(IClient client,
IScope scope)
Called just after the client leaves the scope.
|
void |
removeChildScope(IBasicScope scope)
Called just after a child scope has been removed.
|
boolean |
serviceCall(IConnection conn,
IServiceCall call)
Called when a service is called.
|
boolean |
start(IScope scope)
Called when a scope is created for the first time.
|
void |
stop(IScope scope)
Called just before a scope is disposed.
|
handleEventboolean start(IScope scope)
scope - the new scope objecttrueto allow,
falseto deny
void stop(IScope scope)
scope - Scope that id disposedboolean connect(IConnection conn, IScope scope, Object[] params)
NetConnection.connectmethod (see below).
conn - Connection objectparams - List of params passed from client via
NetConnection.connectmethod. All parameters but the first one passed to
NetConnection.connectmethod are available as params array.
scope - Scope objecttrueto allow,
falseto deny
void disconnect(IConnection conn, IScope scope)
conn - Connection objectscope - Scope objectboolean addChildScope(IBasicScope scope)
scope - Scope that will be addedtrueto allow,
falseto deny
void removeChildScope(IBasicScope scope)
scope - Scope that has been removedboolean join(IClient client, IScope scope)
client - Client objectscope - Scope that is joined by clienttrueto allow,
falseto deny connection
void leave(IClient client, IScope scope)
client - Client objectscope - Scope objectboolean serviceCall(IConnection conn, IServiceCall call)
conn - The connection objectcall - The call object.trueto allow,
falseto deny
Copyright © 2005–2017 Red5. All rights reserved.