And if I do:
newRoom.connect( conn );
instead of join I get:
[ERROR] 219766 pool-3-thread-7:(
org.red5.server.service.ServiceInvoker.invoke ) Error executing call:
Service: null Method: login Num Params: 20: qwe1: asd
where qwe and asd are the correct userName + userPassword
cosmin
> 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
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org