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

Fetching HLS segments to parse start time takes too long #1106

Closed
joeyparrish opened this issue Nov 3, 2017 · 3 comments
Closed

Fetching HLS segments to parse start time takes too long #1106

joeyparrish opened this issue Nov 3, 2017 · 3 comments
Assignees
Labels
component: HLS The issue involves Apple's HLS manifest format status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Milestone

Comments

@joeyparrish
Copy link
Member

Fetching one segment from each playlist uses a lot of time and transfers a lot of bytes. We should try fetching a partial segment instead.

@joeyparrish joeyparrish added type: bug Something isn't working correctly component: HLS The issue involves Apple's HLS manifest format labels Nov 3, 2017
@joeyparrish joeyparrish added this to the v2.3.0 milestone Nov 3, 2017
@joeyparrish joeyparrish self-assigned this Nov 3, 2017
@joeyparrish
Copy link
Member Author

@avelad, please take a look at this. We want to make partial segment requests to determine the start time of each HLS playlist, but the content you linked to in #1102 (https://cdn.demo.anevia.com/live/nas40/Arte/mirada_test/Arte.m3u8) resides on a server which doesn't permit this. We can work around it by falling back to full segments, but the fallback is expensive. It will cost you a lot of time and bandwidth on startup of the stream if we can't fetch partial segments.

We will issue a warning about this in the console, but I wanted to bring it to your attention explicitly, in case you want to look into changes on your servers.

The specific issue is that a cross-origin range request results in a preflight request, but your servers return HTTP 405 because they don't support preflight. Here's a doc about preflight: https://developer.mozilla.org/en-US/docs/Glossary/Preflight_request

@avelad
Copy link
Collaborator

avelad commented Nov 7, 2017

@joeyparrish , I asked for our provider, and this feature will be implemented in a few weeks. I'm back to you when this is implemented

@joeyparrish
Copy link
Member Author

Excellent, thanks!

@shaka-project shaka-project locked and limited conversation to collaborators Mar 22, 2018
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Apr 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: HLS The issue involves Apple's HLS manifest format status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

No branches or pull requests

3 participants