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

Keep Trying Until HLS Stream Starts


I am having some issues with HLS Streams and version 7.2.2

I had previously asked here: http://support.jwplayer.com/customer/portal/questions/15298711-keep-trying-until-hls-stream-starts-was-working-in-jw6-can-t-seem-to-get-it-going-in-jw7

And Alex gave me sample code that worked here: http://qa.jwplayer.com/~abussey/demos/64379-retry-hls.html

Unfortunately, this code doesn't work in 7.2.2.

How can I do this in 7.2.2?

11 Community Answers

jherrieven

User  
0 rated :

This appears to be a bug introduced with 7.2.0

Seems once the onError has fired the first time, the HLS manifest file is not actually requested again when subsequent play() calls are made - probably due to the Flash player caching the URL and assuming the response to be the same...

Example: http://dev.powered-by-haiku.co.uk/debug/retry-hls/

There are a couple of messy workarounds available, but it would be far better for the JW Team to get this resolved.

James Herrieven

===================================================
Powered by Haiku
http://powered-by-haiku.co.uk/
---------------------------------------------------
Tatami for Online Video
http://dev.powered-by-haiku.co.uk/solutions/tatami/
---------------------------------------------------
skype: JamesHerrieven
email: james[at]haiku[dot]co[dot]uk
===================================================

oliver

User  
0 rated :

This is also important to our work... I need it to repeatedly look for the stream. I'd rather not revert back to earlier JW Players.

I'm currently using Cloud Based JW Player 7.2.2.

Alex

JW Player Support Agent  
0 rated :

Hi, Oliver.

I do see that the workaround I provided for you is no longer working as of 7.2.0. I tried playing around with it for a little bit and could not find another workaround. I will escalate this to our Engineers to see what they say, but I want to inform you that since is not built-in functionality of the player, nor a use case we see a lot of, they may reply that its not supported. However, if it’s a fix that could potentially cause other issues, or would be a easy fix, they usually do their best to resolve the change.

As soon as I hear back, I will let you know.

Alex

JW Player Support Agent  
0 rated :

Hi, Oliver.

One of our Engineers finally was able to come up with a solution for you and you can find it at http://qa.jwplayer.com/~abussey/demos/64379-retry-hls-722.html

What it does is actually put your whole configuration into a variable and then, if the HLS stream throws an error, it will set up the entire player again.

Please let me know what you think and let us know if you have any other questions.

Thanks!

test867

User  
0 rated :

Has this bug been resolved? If not, where can I find the workaround?

Alex

JW Player Support Agent  
0 rated :

My apologies – I moved some of my test pages around. You can find that link at http://qa.jwplayer.com/~abussey/demos/prefeb2016/64379-retry-hls-722.html

Thank you.

webservices N/A

User  
0 rated :

The link does not work. I also have this issue. The only way I get it to work is to reinitialize the whole player when on('error') is triggered. I would like to see this example to see if that would be an improvement ?

webservices N/A

User  
0 rated :

(My solution to reinitialize the whole player also causes anoying error messages while retrying...)

webservices N/A

User  
0 rated :

(My solution to reinitialize the whole player also causes anoying error messages while retrying...)

webservices N/A

User  
0 rated :

(My solution to reinitialize the whole player also causes anoying error messages while retrying...)

Alex

JW Player Support Agent  
0 rated :

My apologies (again) – apparently, we’re having some issues linking to some of our test pages on our forum where our links automatically get linked as https. You can either try that above link again and then change the protocol to http, or you can try the following link:

http://s3.amazonaws.com/qa.jwplayer.com/~abussey/demos/prefeb2016/64379-retry-hls-722.html

This question has received the maximum number of answers.