Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hls.js not retrying when manifest request returns 404 #6323

Open
twilson90 opened this issue Apr 2, 2024 · 1 comment
Open

hls.js not retrying when manifest request returns 404 #6323

twilson90 opened this issue Apr 2, 2024 · 1 comment

Comments

@twilson90
Copy link

What do you want to do with Hls.js?

I've also tried setting the manifestLoadPolicy -> errorRetry -> maxNumRetry = 10
No different.
It tries once and completely gives up.
In my case the server hasn't generated a manifest yet so it sends a 404 until it's ready.
Why does hls.js not handle 404 errors?

What have you tried so far?

@twilson90 twilson90 added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Apr 2, 2024
@robwalch
Copy link
Collaborator

robwalch commented Apr 2, 2024

This is the expected behavior for 4xx errors.

You need to add a shouldRetry callback filter to return true for 404s if you want to keep requesting a URL that could not be found.

https://github.com/video-dev/hls.js/blob/master/docs/API.md#shouldretry

https://hlsjs.video-dev.org/api-docs/hls.js.retryconfig

@robwalch robwalch added Works as expected and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants