Skip to main content
Participating Frequently
November 12, 2007
Question

Automatic users placement

  • November 12, 2007
  • 1 reply
  • 351 views
Hello,

I am currently developping a program for my company, using flash media server.
I managed to get most basics by myself, but there is a problem I don' know how to take care off.

In the application we are developping, there are two different swf files : one for admins, and one for users. Those two swf connect to the same instance of the program.
The idea is that the admin is the master of a 30-people video chat room (a "room" corresponding to an instance).

The behavior we would like to reach is the following :

- When a user connects throught the "admin" swf, it should create a new room (=instance) moderated by this user.
- When a user connects throught the "user" swf, it should connect as user to the room (=instance) with the least people in it.

I don't really know I should code this, I thought some solutions already, but all of them have problems and are not really satisfying (such as connecting succescively to all rooms).
I was wondering how I could get information about the instances and the users inside in server-side script, in order to create a server-side program that could tell users in which instance to connect.
This program could either run in a separated instance of the same application, or even better, as a separated application.

Thank you for your help
    This topic has been closed for replies.

    1 reply

    Inspiring
    November 12, 2007
    server side scripts
    Participating Frequently
    November 13, 2007
    Well, I knew this already, but I can't find the methods I should use to get info about the instances to use it in the code (such as getting the number of instances running, the number of clients per instance...).
    I searched the web and the Media Server documentation, without any success for now.
    Could someone help me on finding info on such methods?