Welcome, Guest
  • Author Topic: Need bandwidth cotroll...  (Read 4102 times)

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Need bandwidth cotroll...
    « on: 07/19/05, 23:34 »
    Hi...

    1.lets say the broadcaster has 256k, while the viewer has 56k...what will
    happen.?

    2.What happens if the broadcaster has 256k, and you have 2 viewers, one has 56
    and other has 256 ?

    How can i deliver good video for clients/viewers bandwidth.

    Regards,
    Abrar.

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #1 on: 07/20/05, 03:33 »
    On the publish side, you can adjust Camera and Mic to publish at current connection, on the viewer side, frames will be dropped to adjust to the viewer bandwidth (FlashCom doesn't change publishing quality on the fly) Due to the difficulty in meter the connection speed (variable most of the time due to net conditions), is the user who broadcast the one who selects the bandwidth to use (SetBandwidth component) or you in case you plan the movie to certain conditions, trough Camera and Microphone setQuality and FPS.

    Jorge

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Re: Need bandwidth cotroll...
    « Reply #2 on: 07/20/05, 07:41 »
    i want to set the bandwidth dynamically without using stBandwidth componant. How can i achieve this thru server side scripting.

    Regards,
    Abrar.

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #3 on: 07/20/05, 14:15 »
    Basically, you don't know client bandwidth, so that the first problem.
    To limit bandwidth on server side use:

    Client.setBandwidthLimit(servertoClient, ClientToServer)

    Tipical meters:

    Modem: up->33, down->33
    DSL up->100, ->down->400
    LAN up->1000, down->1000

    To apply on server side use this method on a clientObject like this:

    clientObject.setBandwidthLimit(1000*33/8, 1000*33/8) //Modem

    Jorge

    heatfun

    • Server what's that
    • *
    • Posts: 38
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #4 on: 07/31/05, 07:34 »
    Client.setBandwidthLimit(servertoClient, ClientToServer)  <-this set each user connect to server and get from server speed???
    clientObject.setBandwidthLimit(1000*33/8, 1000*33/8)   <-so what is this purpose???
    FUN

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #5 on: 08/01/05, 01:56 »
    Client is the client class on serverside. ClientObject is an instance of a client, passed as the first argument in the application.onConnect handler.

    Jorge

    heatfun

    • Server what's that
    • *
    • Posts: 38
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #6 on: 08/01/05, 02:40 »
    you mean if i set Client.setBandwidthLimit(56000, 56000),then if a client connect,then that client only get  56000 up and down??
    FUN

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #7 on: 08/01/05, 02:48 »
    Correct

    Jorge

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Re: Need bandwidth cotroll...
    « Reply #8 on: 08/01/05, 05:44 »
    ok,

       before that i get to know the client bandwidth first . Do anyone have idea about  bandwidth detection on application.onConnect() method.
    So that i can set  according to each clients bandwidth.

    Regards,
    Abrar.

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #9 on: 08/01/05, 06:50 »
    Since bandwidth hangs on Net state and even a broadband could be slower sometimes, faster others, there's very difficult to detect that. This is the reason because most apps let user select his own speed (so is user fault if he lost quality) and let default as the slower one.

    Jorge

    abrar

    • Seasoned Programmer
    • ***
    • Posts: 124
      • View Profile
      • Email
    Re: Need bandwidth cotroll...
    « Reply #10 on: 08/01/05, 07:30 »
    is there any  solution that we can detect atleast range in of the clients bandwidth.

    Regards,
    Abrar.
     

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Need bandwidth cotroll...
    « Reply #11 on: 08/01/05, 08:00 »
    You can check differences between ping on server side, or load something on client side, measure how much it take, determine bandwidth based on it.

    Jorge