-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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 duplicate hinted segments #4258
fix(HLS): Fix duplicate hinted segments #4258
Conversation
Because zero-duration references cause such chaos, ensure that the HLS parser never produces these. Preload-hinted segments should use the target duration for partial segments, and if that required attribute is missing from the playlist, then preload-hinted segments should be skipped.
// If DURATION is missing from this partial segment, use the target | ||
// partial duration from the top of the playlist, which is a required | ||
// attribute for content with partial segments. | ||
const pDuration = Number(item.getAttributeValue('DURATION')) || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Technically this approach means that if a manifest has a tag with DURATION=0
, we will ignore that. But I don't know why someone would want to do that, so it's probably fine to not account for it.
@theodab Is it ready to merge? |
I had some disagreement with the original reporter of the issue via email, but I still believe this is the correct fix, and an important one based on the severity of the issue. I've informed them via email that we're going ahead with this fix. |
Because zero-duration references cause such chaos, ensure that the HLS parser never produces these. Preload-hinted segments should use the target duration for partial segments, and if that required attribute is missing from the playlist, then preload-hinted segments should be skipped. Closes #4223
Because zero-duration references cause such chaos, ensure that the HLS parser never produces these. Preload-hinted segments should use the target duration for partial segments, and if that required attribute is missing from the playlist, then preload-hinted segments should be skipped. Closes #4223
Because zero-duration references cause such chaos, ensure that the HLS parser never produces these. Preload-hinted segments should use the target duration for partial segments, and if that required attribute is missing from the playlist, then preload-hinted segments should be skipped. Closes #4223
Because zero-duration references cause such chaos, ensure that the HLS parser never produces these. Preload-hinted segments should use the target duration for partial segments, and if that required attribute is missing from the playlist, then preload-hinted segments should be skipped. Closes shaka-project#4223
Because zero-duration references cause such chaos, ensure that the HLS
parser never produces these. Preload-hinted segments should use the
target duration for partial segments, and if that required attribute
is missing from the playlist, then preload-hinted segments should be
skipped.
Closes #4223