[Red5devs] I can't destroy the room

Walter Tak walter at waltertak.com
Tue Jun 17 14:49:30 PDT 2008


You could manually stop the room by issuing a IScope.stop(); e.g.

public void roomLeave(IClient client, IScope room) {
    // test if this user is the last one in this scope
    if (condition) {
        // this was the last one, let's get rid of this room
        room.stop();
    }
}

The room (without clients in it) might be cleared next time the GC runs, have you watched the log to see if that particular room was stopped, perhaps 30 minutes after the last client left the room ? Make sure you have logging enabled in all events (roomstart, roomstop, roomleave) so you can see what happens and don't have to search in the dark.

Regards,
Walter


  ----- Original Message ----- 
  From: Dmitry Pereuda 
  To: red5devs at osflash.org 
  Sent: Tuesday, 17 June 2008 21:07
  Subject: [Red5devs] I can't destroy the room


  Hello everyone,

  I do connect to my server using this link:
  rtmp://www.myserver.com/conference/12345678

  Where 12345678 is room number or room name.
  Then RED5 server creates the room and calls event roomStart()

  But when I close last connection I did not receive event roomStop()
  it means that even after disconnect last connected user room
  is still there. Seems server does not destroy the room....

  Can somebody explain me why and how can I fix it?
  Maybe I do something wrong?

  Thanks,
  Dmitry


------------------------------------------------------------------------------


  _______________________________________________
  Red5devs mailing list
  Red5devs at osflash.org
  http://osflash.org/mailman/listinfo/red5devs_osflash.org



------------------------------------------------------------------------------


  No virus found in this incoming message.
  Checked by AVG. 
  Version: 7.5.524 / Virus Database: 270.3.0/1505 - Release Date: 16-06-08 07:20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5devs_osflash.org/attachments/20080617/e430ec86/attachment.html 


More information about the Red5devs mailing list