Wowza Community

Setting up RTMP BufferLength for JWMediaplayer

I need to setup the buffer to give the client connection a 5-10 second buffer. I have tried to hire people to help since I am kind of new to the server, but haven’t had any luck getting responses so I guess now I am looking for some tips.

I am using Wowza 2. Is the buffer controlled by the server, the client or both? I didn’t see anything in the Application.xml file that I could modify and tried using the code below on the client side but as soon as I disable my network card to test the buffer, the stream drops instantly. I tried putting the bufferlength in a couple different ways as you can see, but none of them have any effect.

Some of my users in remote areas can’t keep up with the stream without a buffer and need to get this up as soon as possible.

			<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="720" height="430">
			<param name="movie" value="/jw/player.swf" />
			<param name="allowfullscreen" value="true" />
			<param name="allowscriptaccess" value="always" />
			<param name="flashvars" value='file=mediaxml/142.xml&username=1&bufferLength=10' />
			<param name="flashvars" value='bufferlength(10)' />

In JW player you can set the buffer in the Flashvars. What you are doing looks correct in the embed section, but not correct in the object section. Each has to have a Flashvars line, but just one, but it should look like the one you have in embed section.


This is more complete:


I added the streamer and provider Flashvars

In the Object section you have several params named “Flashvars”, that is not right. And the way you are setting bufferLength is correct in the embed Flashvars line “&bufferlength=10” is right. But it iswrong in the Object section, “bufferlength(10)” is wrong.

See this post:

And visit JW player, and use their setup Wizard:

And take forums:


Disabling the network interface is going to simulate network failure… it is going to be actual network failure. You can use a tool called NetLimiter to simulate slower network.


So is it all client based? The stream still dies immediatly upon disconnect after implementing this.

I may be wrong in my method of testing though. I start up a stream, then under Network settings disable the NIC card. I have a hard time simulating a crappy connection like my users may have.

I seem to see a faint shadow area on the play position bar that may indicate a buffer, just not sure…