Hi, i have a doubt with mehtod 'public boolean *join*(IClient 
<http://dl.fancycode.com/red5/api/org/red5/server/api/IClient.html> client, 
IScope 
<http://dl.fancycode.com/red5/api/org/red5/server/api/IScope.html> scope)' 
of class ApplicationAdapter. I would like to manage user's room on 
server-side in the application i'm developing.
I have a method on server-side named 'boolean joinToRoom (Object[] 
params )' that I invoke from clien-side. The code of this method is:

        boolean joinToRoom (Object[] params ) {

                String roomDestinyName  = (String) param[0]; //Name of 
destiny room
                ...
                IConnection connOrigin = Red5.getConnectionLocal();
              
                IScope roomDestiny  = 
this.getScope().getScope(roomDestinyName ); //Get destiny room
               
                boolean res = this.*join*(connOrigin .getClient(), 
roomDestiny  ); //Join the current user to the requested room
                ....
        }
                              
But this method doesn't work. The current user stay in the original room.
The source code for this methos is:

    public boolean join(IClient client, IScope scope) {
        if (!super.join(client, scope)) {
            return false;
        }
        if (isApp(scope)) {
            return appJoin(client, scope);
        } else {
            return isRoom(scope) && roomJoin(client, scope);
        }
    }
¿Where is the lodic to manage rooms?
The description in the API says:
"Adds client to scope. Scope can be both application or room. Can be 
applied to both application scope and scopes of lower level."

Am I on the wrong way?? What does this method do really?

I don't want to use the 'URL alternative' to manage rooms: 
"rtmp://host/app/room1/room2"

Thanks lot.


-- 
*Caymasa El Sendero*    *Angel Peña Ruiz Departamento de Desarrollo*
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
--http://www.elsendero.es--
tel.: 95 448 64 11 / fax: 95 448 48 03


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to