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

HLS playback buffering issue


We have a custom server that serves up live video using HLS. It works correctly with Flowplayer's HLS plugin, but with JWPlayer it will play for a few seconds then gets into an indefinite 'buffering' state showing the spinner. At this point no more requests for the playlist occur as if it's hung. This is what the server's playlist looks like:

#EXTM3U
#EXT-X-VERSION:2
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:38
#EXTINF:2
Seg38.ts
#EXTINF:2
Seg39.ts
#EXTINF:2
Seg40.ts
#EXTINF:2
Seg41.ts
#EXTINF:2
Seg42.ts
#EXTINF:2
Seg43.ts


It seems like what happens is that it tries to buffer more than the 12 seconds the playlist shows as available, and when JWPlayer requests the playlist again and gets an empty list from the server(because no more segments are available yet), it hangs indefinitely.

Are their assumptions in JWPlayer's HLS code that the playlist's total length of segments must be more than the 12 seconds the server always returns? Or that segments must be longer than 2 seconds?

Jeff

3 Community Answers

Ethan Feldman

JW Player Support Agent  
0 rated :

Do you have a link?

jdallacqua

User  
0 rated :

No link. This is a custom server we're developing.

Looking at the behavior of JWPlayer with other HLS servers that work, it looks like the player immediately buffers up 30 seconds worth of segments. Is that correct? If there isn't 30 seconds of segments available in the playlist will the player choke?

Ethan Feldman

JW Player Support Agent  
0 rated :

Where did you read that? I really need to see an example.

This question has received the maximum number of answers.