How would I determine every single currently logged in user that is currently available to chat, and then connect 2 random people with video chat without either person ever selecting another user (done in the background while the user waits).
Try to use Chat room http://quickblox.com/developers/SimpleSample-chat_users-ios#Chat_in_room
Every use joins room.
Every user can see a list with online users in the room:
#pragma mark -
#pragma mark QBChatDelegate
- (void)chatRoomDidChangeOnlineUsers:(NSArray *)onlineUsers room:(NSString *)roomName{
NSLog(@"chatRoomDidChangeOnlineUsers %@, %@",roomName, onlineUsers);
}
Choose randomly user from array onlineUsers and call to him.
While videochat - leave room, so other users won't choose you and your opponent for videochat if you are now having it