Dominick Accattato wrote:
> oh, it slips my mind which api call gets a list of connections.. but
> there is a way :)
IScope.getConnections
You can obtain local scope via Red5.getConnectionLocal().getScop();
AFAIK the room is the scope of level... let me think...
0 is global
1 is app
2 is room
yep, level 2. Then just get a stream of connection, check whether it's a
instance of IServiceCapableConnection and if it is, go ahead and invoke
method on client NetConnection as Dominick said.
I use this method for this sake
/**
* Invokes method on client
*
* @param conn Connection
* @param method Method name
* @param params Set of params to pass
* @return
*/
private boolean invoke(IConnection conn, String method, Object[] params) {
if (conn instanceof IServiceCapableConnection) {
IServiceCapableConnection service =
(IServiceCapableConnection) conn;
service.invoke(method, params);
return true;
}
return false;
}
--
Michael "Antares" Klishin,
http://www.novemberain.com | mailto:[EMAIL PROTECTED]
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org