[Red5] Session variables - is it posible?

Andy bowljoman at hotmail.com
Sun Nov 18 17:35:22 PST 2007


When they connect, look at the connection parameters and do something
like 

conn.getClient().setAttribute("name", params[0]);	

and to select clients

Iterate through the connections in the 'scope' and look for your
attribute.

I do a lot of that here, if you want to look. 

http://redsandy.googlecode.com/svn/trunk/red5World/webapps/omnicron/WEB-
INF/src/com/thebitstream/omnicron/Application.java



-----Original Message-----
From: red5-bounces at osflash.org [mailto:red5-bounces at osflash.org] On
Behalf Of Mamontov Sergey V.
Sent: Sunday, November 18, 2007 12:34 PM
To: red5 at osflash.org
Subject: [Red5] Session variables - is it posible?

Hello,

Because I'm not really good in Red5, I have some questions about
session variables.

For example:
I connect to application name "appTest" and making same instence name
"test_inst", connect URL such as: rtmp://localhost/appTest/test_inst

When I make connection for example for 3 clients and set some
variables:

instance1: set some_var = a;
instance2: set some_var = b;
instance3: set some_var = c;

And when i will need to get some_var for second instance what value i
will get? b or there is small % of than I ca get wrong variable?

Please, help me with this :)

Regards,

Sergey


_______________________________________________
Red5 mailing list
Red5 at osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org




More information about the Red5 mailing list