Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

RTMP latency recovery


Hi,

I'm using jwplayer to play a rtmp live stream from Wowza.
I'm using bufferlength: 0.1 and getting very good latency.
Look at the bufferfill coming from the meta events is in the 1-2 range.

If the downlink (wowza to jwplayer) bandwidth reduces for a short time the video appears to play more slowly. However when the bandwidth recovers the player is now 4-5 seconds behind live. The bufferfill goes up to around 8 and stays there.

Its even worse if the uplink (origin server to wowza) bandwidth reduces. I've see the bufferfill increase to almost 100.

Our application requires interactive video so I need to ensure the client is always playing as close to live as possible.

I would have expected that the bufferfill would be related to the bufferlength setting. Is this the case ?

Regards

Colm A

5 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello Colm,

Thank you for reaching out to us. That is strange that your up/downstreams seem to suffer. How are you sending these feeds? Are you utilizing a LAN connection or hardwired connection? Can you also perform a basic traceroute to check network connection just for troubleshooting purposes?

I want to make sure we are looking in the right direction.

Thank you,

Randy

applications

User  
0 rated :

Hi Randy,

Thanks for getting back to me.

We are streaming video from remote servers through wowza to web clients.

What we've seen is that the client video sometimes stutters (plays/stop/plays/stops) for a time and then recovers. I'm thinking that this is caused by a reduction in the uplink bandwidth possibly caused by some other service on the server consuming uplink bandwidth.

I'm trying to reproduce this by throttling a test uplink feed to see if I can reproduce what is seen in the player.

What it looks like to me is that the player can end up buffering a lot more that I would expect.

I've been looking a little into the NetStream class and noticed that is has a bufferTimeMax property and was wondering if this would help limit the max latency drift in the client.

Regards

Colm A

Randy

JW Player Support Agent  
0 rated :

Hello Colm,

If you pull up a console and look at the network traffic in your browser does the traffic seem okay on your side?

Kindly,
Randy

applications

User  
0 rated :

Hi Randy,

I solved the problem by checking if bufferfill gets too large and if it does calling pause/play to flush the NetStream buffer.
This stops the player drifting too far behind live.

Regards

Colm A

Randy

JW Player Support Agent  
0 rated :

Hello Colm,

Great catch. I will make sure this data is captured and looked at. Thank you again.

Randy

This question has received the maximum number of answers.