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

m3u8-stream freeze and goes black on seek


I' trying to seek in this stream: http://cdnsource.streamlightsolutions.se:80/hls-vod/lonorge/20170509-150038.mp4.m3u8
seek(7421) works and video is playing fine however if I try to use the progress bar to go to another point in the video It freezes.
seek(4142) freezes the image on a black screen. If I press pause and play again I get sound, but no image.

This is my setup using premium key:
var player = jwplayer($player.attr('id')).setup({
file: http://cdnsource.streamlightsolutions.se:80/hls-vod/lonorge/20170509-150038.mp4.m3u8,
image: http://stream2.streamlightsolutions.se/kongresser/lo/datafiles/thumbs/904e3a2432124f4f89a22f6539bbc88d.jpeg,
autostart: false,
stretching: 'fill',
volume: 80,
width: '100%',
height: '100%'
});

I'm not that familiar with video streaming, so if anyone got a clue what's going on here it will be very much appreciatet.

6 Community Answers

s...

User  
0 rated :

Update. Changed to force flash player instead of html5. Worked alot better, but still a little trouble with seeking sometimes. If you seek once you get a black screen, press pause and play and I get sound but no image. Refresh page and seek to the same spot works like a charm.

So it seems the player have trouble seeking to a place in the video with no buffer. Bug?

Alex

JW Player Support Agent  
0 rated :

Hi there,

I was able to reproduce the behavior intermittently but it is not entirely obvious to me what is causing it. My feeling is that it is most likely the stream. Would it be possible to send me an archive (ZIP file) of the entire stream, including all of the segments?

Please let me know. Thank you.

s...

User  
0 rated :

Unfortunatly there's a third party controlling the files so I din't get them. I do however have a new working theory.

It seems that over night everything have become a lot more stable without me changing anything. Yesterday I was testing just after the stream became available online.
Could have something to do with the cache being built on the streaming server and jwplayer not handling that situation very well? I don't have enough knowledge of how these things work but I talked to the third-party streaming guys and they mentioned that the video was indexed and cached.

The code is live so the only difference I think of is that many users have accessed the stream thus building the cache on the streamingserver. When testing the stream here: http://demo.jwplayer.com/developer-tools/http-stream-tester/ I can still find a few "pockets" where the player freezes but there are a lot fewer of them now. I watched the network traffic in the developer console when I hit one of the freeze spots and it looked like the requests for .ts files just stopped.

Alex

JW Player Support Agent  
0 rated :

Hi there,

Unfortunately, I do not have much knowledge on the inner workings of streaming providers so I would not be able to speak to whether or not the stream building up a cache would potentially resolve this issue. Our player just simply makes the request for the stream and plays what it receives.

Are you able to reproduce similar behavior when accessing the stream directly in either Safari on a Mac or Edge on Windows 10 without using our player? Both browsers natively support HLS so I would be curious as to whether or not the behavior occurred there as well.

Thank you.

s...

User  
0 rated :

Yes it seems like I can reproduce it in Edge. Video freeze at certain points but there aren't many of those points left in the initial stream. Tried a little bit in VLC as well, but could not reproduce there.

I was able to get the videofile. You can download it here: https://barockprod.wetransfer.com/downloads/7b021261dcbe25b041f406bdd69a224d20170512101205/9532fe7e017cfb1cd0b16da918c9695520170512101205/aa046f

The segments are created on demand so I didn't get those. (Freeze could be related to this?)

Here is a "fresher" stream and it seems to me like this fails more often at least at this time. It may be "warmed up" when you test it. http://cdnsource.streamlightsolutions.se:80/hls-vod/lonorge/20170512-100147.mp4.m3u8

Alex

JW Player Support Agent  
0 rated :

If you are able to reproduce the same behavior when accessing the stream directly in Edge, not using our player, then the issue is most likely related to the stream itself and I would recommend contacting your streaming provider for further troubleshooting.

Thank you.

This question has received the maximum number of answers.