[Red5] appLeave

Joachim Bauch jojo at struktur.de
Fri Mar 9 06:09:07 EST 2007


Hi,

Jean-Philippe DELAVALLADE schrieb:
> can you show me an example please (serverside code and client code in  
> flash) ?

Red5:
public void appLeave(IClient client, IScope app) {
     ServiceUtils.invokeOnAllConnections(app, "clientLeft", new Object[]{client.getId()});
     super.appLeave(client, app);
}

Flash:
class MyConnection extends NetConnection {
     function clientLeft(id: String) {
         trace("Client left: " + id);
     }
}

You can check out the videoconference example, which uses this technique
to set a id on each client by calling "setId".

Joachim
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4355 bytes
Desc: S/MIME Cryptographic Signature
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20070309/5adaf287/smime.bin


More information about the Red5 mailing list