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

fix(HLS): Support request byterange on media playlist detection #6629

Merged
merged 1 commit into from
May 17, 2024

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented May 17, 2024

Fixes #6627

@avelad avelad added type: bug Something isn't working correctly component: HLS The issue involves Apple's HLS manifest format priority: P2 Smaller impact or easy workaround labels May 17, 2024
@avelad avelad added this to the v4.9 milestone May 17, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

const middleSegmentIdx = Math.trunc((playlist.segments.length - 1) / 2);
const middleSegment = playlist.segments[middleSegmentIdx];
const middleSegmentUris = shaka.hls.Utils.constructSegmentUris(
const firstSegment = playlist.segments[0];
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in which we started looking for a segment in the middle of the playlist, instead of the first one, was originally written by you.
In all honesty I don't remember why we were doing it before. I suppose I'll have to take your word that it is no longer necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not really necessary anymore and it also causes problems with byterange (we would have to look at all the previous segments to calculate the range).

@avelad avelad merged commit d66446f into shaka-project:main May 17, 2024
20 checks passed
@avelad avelad deleted the byterange-mediaplaylist branch May 17, 2024 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: HLS The issue involves Apple's HLS manifest format priority: P2 Smaller impact or easy workaround type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HLSParser: MEDIA_SEGMENT request in getMediaPlaylistBasicInfo_ causes load latency
3 participants