Search code examples
flashmediabandwidth-throttling

How to test streaming bandwidth on localhost with Flash Media Server?


I'm trying to debbug my actionscript (AS3) code on Client side that works with Flash Media Server 4 on localhost. Everything seems fine up to that point.

However, when I'm trying to test my player with other remote streaming servers, I notice bugs because of lower bandwith transmission between the server and the player.

Is there a simple way to simulate lower bandwith with FMS4 on localhost ?

  • by config, application.xml, etc.?
  • by programmation (main.asc) ?
  • both ?

Solution

  • If you want to think a little outside of the box, you could use an application such as NetLimiter. Just make a filter for the specific application and you can throttle the bandwidth to whatever speed you'd like (down to bytes).

    EDIT

    Also, with some brief googling, I was able to find client.setBandwidthLimit and BandwidthCap in the Application.xml file.

    There's also an article on Configuring Limiting Bandwidth (if that helps).