
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