« Return to Thread: q:

q:

by tommaso159 :: Rate this Message:

Reply to Author | View in Thread

the following code is part of my roomJoin()

.......
       Set<IClient> clients_current = scope.getClients();
        log.debug("ClientSIZE: "  + clients_current.size() );
       
        //check for max room attendees
        int max_attendees = this.m_the_db.get_setting_max_attendees_per_meeting(client.getAttribute("client_meetingid").toString());
        int clients_in_room = clients_current.size();
        if(clients_in_room>=max_attendees){
            log.info("Room FULL! MaxAttendees:RoomClients <> " + max_attendees + ":" + clients_in_room);
            rejectClient("Room Full");
        }else{
           
            if(clients_current.size()==0){
                //add_user_to_scope_userlist(scope, client);
            }
            //send_out_user_list(scope);
        }

.............
LOG:
2009-07-09 15:08:46,615 [pool-4-thread-3] INFO  vs.Application - **********************************************************************************
2009-07-09 15:08:46,615 [pool-4-thread-3] INFO  vs.Application - Application  -  roomJoin  -  START
2009-07-09 15:08:46,615 [pool-4-thread-3] INFO  vs.Application - **********************************************************************************
2009-07-09 15:08:46,615 [pool-4-thread-3] INFO  vs.Application - Client MeetingID: 55011638
2009-07-09 15:08:46,615 [pool-4-thread-3] INFO  vs.Application - ClientID: 0
2009-07-09 15:08:46,615 [pool-4-thread-3] DEBUG vs.Application - ClientSIZE: 0
2009-07-09 15:08:46,616 [pool-4-thread-3] INFO  vs.Application - Room FULL! MaxAttendees:RoomClients <> 0:0


>> my client is getting rejected....Argh... did something change since i wrote that code(v7)?
>> im basically the ONLY one who is connecting to that room... (DEV)

thx




_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

 « Return to Thread: q: