My problem is this:
I have an app that any user connects to. Any user can call the login
method with username / pass and if auth works ok then I want to do the
following:
- create room with name = username
- add user who provided correct auth to the newly created room

My login looks like this:

public String login ( String userName, String userPassword )
{
IConnection conn = Red5.getConnectionLocal();
IClient client = conn.getClient();
if( auth.checkCredentials( userName, userPassword) ){
                if( createChildScope( userName ) ){
                        IScope newRoom = getChildScope( userName );
                        join( client, newRoom );
                        return "001";//Login ok
                }else{
                        return "002";//Login ok but room creation failed
                }
}else{
        return "003";//Login not ok
}
}

The room is created but I see no sign of the user joining the room.
What is the correct way of putting a user ( IClient ) in a room ( IScope )?

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

Reply via email to