On 9/15/06, Dominick Accattato <[EMAIL PROTECTED]> wrote:
IConnection current = Red5.getConnectionLocal();
Iterator<IConnection> it = scope.getConnections();
while (it.hasNext()) {
IConnection conn = it.next();
if (conn.equals(current))
// Don't notify current client
continue;
if (conn instanceof IServiceCapableConnection) {
((IServiceCapableConnection) conn).invoke("someClientMethod", new Object[]{"Hello World"}, this);
log.debug("sending notification to "+conn);
}
}On 9/15/06, Marcel D. <[EMAIL PROTECTED]> wrote:Hi everyone,
I used to do this in FMS to inform all connected client:
for (i = 0; i < application.clients.length; i++){
application.clients[i].call("someFunctionOnClient");
}
Could someone give me the equivalent for Red5? Just a chunck of code and I'll be happy....!
Thanks!
Marcel
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org
_______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
