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): Fix uncaught error in slow network scenario #7321

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

avelad
Copy link
Member

@avelad avelad commented Sep 16, 2024

This case can occur with a live HLS in which the playlist timeout errors and that playlist is deactivated and changed to another one and this other one takes a long time to be received.

@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 Sep 16, 2024
@avelad avelad added this to the v4.12 milestone Sep 16, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

mediaState.segmentIterator =
mediaState.stream.segmentIndex.getIteratorForTime(
time, /* allowNonIndepedent= */ false, reverse);
if (mediaState.stream.segmentIndex) {
Copy link
Member

Choose a reason for hiding this comment

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

If this is null, is segmentIterator always null already?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes!

@avelad avelad merged commit 68e579b into shaka-project:main Sep 17, 2024
20 of 21 checks passed
@avelad avelad deleted the hls-slow-scenario branch September 17, 2024 06:06
avelad added a commit that referenced this pull request Sep 18, 2024
This case can occur with a live HLS in which the playlist timeout errors
and that playlist is deactivated and changed to another one and this
other one takes a long time to be received.
avelad added a commit that referenced this pull request Sep 18, 2024
This case can occur with a live HLS in which the playlist timeout errors
and that playlist is deactivated and changed to another one and this
other one takes a long time to be received.
joeyparrish pushed a commit that referenced this pull request Sep 18, 2024
This case can occur with a live HLS in which the playlist timeout errors
and that playlist is deactivated and changed to another one and this
other one takes a long time to be received.
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
3 participants