Skip to main content

How to test server-to-client bandwidth for RTMP clients

Forum, Support | Wowza Media Systems - How to test server-to-client bandwidth for RTMP clients





This article describes how to use a bandwidth checker provided by forum contributor Roger. It is a Wowza Media Server/Java version of the bandwidth checker:




To install the BWCheck package



  1. Download BWChecker.zip and extract the contents from the compressed (zipped) folder.

  2. Copy the lib/wms-plugin-bwcheck.jar file in the package to the [install-dir]/lib folder.

  3. If Wowza Media Server® is running, restart the server.



To configure the bandwidth checker on the server



  1. Create a folder named [install-dir]/applications/bwcheck.

  2. Create a folder named [install-dir]/conf/bwcheck.

  3. Copy the [install-dir]/conf/Application.xml file to the new [install-dir]/conf/bwcheck folder.

  4. Open the [install-dir]/conf/bwcheck/Application.xml file in a text editor and either remove or comment-out the flvplayback module reference:


    Code:

    <!--Remove or comment-out this section.-->
    <Module>
    <Name>flvplayback</Name>
    <Description>FLVPlayback</Description>
    <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
    </Module>



  5. Add the following module reference as the last entry in the <Modules> section (it is important that it be the last entry):


    Code:

    <Module>
    <Name>BWCheck</Name>
    <Description>BWCheck</Description>
    <Class>com.wowza.wms.plugin.bwcheck.ModuleBWCheck2</Class>
    </Module>







Note: The ModuleBWCheck2 module source code is included in the src folder that you extracted from the BWChecker.zip file.




To configure bandwidth checker clients




Copy the client folder that you extracted from the BWChecker.zip file to a client computer. The client folder contains the following renditions of the bandwidth checker client:



bwchecker.html



This is an interactive tool that tests server-to-client bandwidth every 5 seconds.




  1. Install the bandwidth checker client:


    • On Windows® operating systems, right-click install.bat, and then select Run as administrator.

    • On Linux® operating systems, run ./install.sh.

    • On Mac OS® X, run ./install.command in a terminal window.



  2. Open the bwchecker.html file in a web browser and update the Server field with the IP address of the remote Wowza Media Server that you configured in the previous section (for example, rtmp://[wowza-ip-address]/bwcheck).

  3. Click Start.




The sample application will return the download speed and latency value between the remote Wowza Media Server and your local browser approximately once every 5 seconds.



bwcheck.fla

This is an example of how you might call the bandwidth checker on the server from your Adobe® Flash® client application. You can integrate the example code in this file into your Flash-based player to test bandwidth before playing a media stream. When the bandwidth checker is done, it will call onBWDone with the calculated bandwidth in kilobits-per-second (kbps).

Comments

Post a Comment

silahkan tinggalkan komentar yang sopan.
terima kasih

Popular posts from this blog

Kivandanu, Could one of our premium services help you?

http://srudut.com 2011/2/22 John Dalt < John@galtstock.com > You are receiving this message, because you have subscribed to the newslettera1 newsletter on Monday, January 17th, 2011. To ensure that you continue to receive emails from us, add John@galtstock.com to your address book promptly.         Galtstock       Research for Online Investors HOME       ARCHIVE     NEWS      RESOURCES       DIVERSIONS Monday Morning The market set a new 52-week high Friday...where does it end?  Today reports out of Libya don't sound promising.  Protesters have burned the General Assembly building.  BP is evacuating their personnel. Guddafi is reported to be heading to Venezuela. There were also reports yesterday of protests in China.  The police quickly arrested any suspicious actors.  Suffice it to say, this is not a market you can buy and forget.   There are plenty of moving pieces to keep track of...problems and opportuni

Download Qari/Reciters and Translations, Al-Quran ReadPen Data

  Al-Quran ReadPen Data Download Qori/Reciters and Translations   Qori/Reciter Files Sr. Qori/Reciter Name File Size Updates 01. Al Sheikh Ali Abdul Rahman Al Huzaifi 222 MB 17 Mar 2012 02. Al Sheikh Abdul Basit 'Abd us-Samad 387 MB 19 Mar 2012 03. Al Sheikh Mishary bin Rashid Al-Afasy 228 MB 13 Mar 2012 04. Al Sheikh Ahmad Ali Mohammad ‘al Soulayman Al Ajamy 212 MB 17 Mar 2012 05. Al Sheikh Salaah bin Muhammad Al Budair 164 MB 17 Mar 2012 06. Al Sheikh Mohammed Al-Alim Al-Dokhail 417 MB 07 Oct 2011 07. Al Sheikh Sa’ad Al-Ghamdi 201 MB 13 Mar 2012 08. Al Sheikh Mahmoud Khal