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

.ts file expired in response to 403, Hls.ErrorTypes.NETWORK_ERROR loadSource The new .m3u8 will load the .ts file from scratch, how can I seamlessly transition from the expired .ts fragment to the new .ts fragment? #6641

Open
baiachen opened this issue Aug 21, 2024 · 4 comments
Labels

Comments

@baiachen
Copy link

What do you want to do with Hls.js?

.ts file expired in response to 403, Hls.ErrorTypes.NETWORK_ERROR loadSource The new .m3u8 will load the .ts file from scratch, how can I seamlessly transition from the expired .ts fragment to the new .ts fragment?

What have you tried so far?

No response

@baiachen baiachen added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Aug 21, 2024
@baiachen
Copy link
Author

I'm now replacing the valid .ts file url by overriding fLoader.context.url, instead of using the hls.loadSource method to load the new .m3u8, which would cause a reload of the video being played, which sucks!

@robwalch robwalch removed the Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. label Aug 21, 2024
@robwalch
Copy link
Collaborator

I'm now replacing the valid .ts file url by overriding fLoader.context.url, instead of using the hls.loadSource method to load the new .m3u8, which would cause a reload of the video being played, which sucks!

hls.loadSource always resets and reloads the HLS asset.

@robwalch
Copy link
Collaborator

You should look into using Content Steering to clone and replace variant and rendition URLs to a new pathway if you need to change the path to media playlists and their segments.

@robwalch
Copy link
Collaborator

Pathway cloning is only available via steering manifest. If you have tokens that expire you should implement a steering manifest. The v1.6 release will include the ability to set the pathway (#6295). There is no client-side API to clone pathways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants