How does each client connect to a subscope. I normally use nc.connect
(rtmp://the-ip/mainlobby/subscope)

So for the user to get out of the scope, I use nc.close
In this case it is the user that creates the subscope. When I call nc.close,
I see roomLeave.

Does the last user trigger roomStop for you? This is because disconnecting
all users should be enough to remove the scope. Is the last user leaving the
room triggering roomStop?

If this is not happening then this could be an issue to raise in JIRA.

On 3/23/07, Martijn van Beek <[EMAIL PROTECTED]> wrote:

Wouldn't it be better for having a method like:
scope.remove();

The problem is that red5 has created the room, not the client (the client
requests it). The client doesn't need to be disconnected, he just needs to
leave the room.

I already disconnected all the users from the scope that should be enough,
right?.

When I check with this piece of code where roomObj is a IScope instance:

Set<IClient> clients = roomObj.getClients ();
Iterator iter = clients.iterator();
while ( iter.hasNext() ) {
    IClient client = (IClient) iter.next();
    log.info( "Still connected: "+client.getAttribute("username") );
}

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




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

Reply via email to