[Red5] How to tell when a particular client disconnects from Red5 server
Prabhu Tamilarasan (omNovia)
ptamilarasan at omnovia.com
Thu Oct 16 10:09:49 PDT 2008
You can save a reference to the Client object of the particular client.
When the connection dies or he leaves gracefully you should get a
roomDisconnect/appDisconnect event in which you can see if the client that
left was the one you are looking for.
next generation web conferencing
Prabhu Tamilarasan
Senior Software Engineer
675 Bering Drive, Suite 290
Houston, TX 77057 USA
www.omnovia.com
ptamilarasan at omnovia.com
T +1.281.500.4065 x 731
-----Original Message-----
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On Behalf
Of Christopher Walzl
Sent: Thursday, October 16, 2008 11:50 AM
To: red5 at osflash.org
Subject: [Red5] How to tell when a particular client disconnects from Red5
server
Hi all,
I have one client who is periodically invoking a method on the server.
The connection between this client and server is kept alive while the
client is still running. Other clients are connected to the Red5
server, but are just listening. Is there a way on the Red5 side, to
determine if this one particular client is still connected? One idea
I had was to keep a reference to the IConnection on the server, once
the client connects. I could then create a thread to periodically
call 'isConnected()' on the IConnection object to see if it is still
connected. I haven't tried this, and am not sure if it'll work yet.
Any thoughts on that? However, what I'd really like is some way to
register a callback with this IConnection, and for it to tell me when
the connection has died. Is that possible given the current set of
API's? Any other ideas?
Thanks!
Chris Walzl
cwalzl at gmail.com
(972) 974-6728
Sent from my MacBook Pro
_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org
More information about the Red5
mailing list