-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Fix HLS dynamic to static transition #4483
Merged
joeyparrish
merged 3 commits into
shaka-project:main
from
joeyparrish:fix-hls-dynamic-to-static
Sep 13, 2022
Merged
fix: Fix HLS dynamic to static transition #4483
joeyparrish
merged 3 commits into
shaka-project:main
from
joeyparrish:fix-hls-dynamic-to-static
Sep 13, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Keep maxSegmentEndTime_ updated in PresentationTimeline by calling notifySegments on each HLS playlist update, so that the seek range doesn't revert to the original playlist size when it becomes static. - Wait to change the presentation type to VOD until after _all_ active playlists have an ENDLIST tag, to avoid missing the final segments in one type or the other. - Stop updating the playlists after transition to VOD. - Update the MSE duration at exactly the same time as we transition to VOD, to avoid a loophole where the UI knows it's VOD, but doesn't have any way to get the correct duration. Previously, this state would persist until the final segments were appended. Closes shaka-project#4431
I kept this in three separate commits to make it (hopefully) easier to review and rebase against:
|
joeyparrish
force-pushed
the
fix-hls-dynamic-to-static
branch
from
September 13, 2022 17:59
4288e48
to
d9f410b
Compare
Incremental code coverage: 92.50% |
theodab
approved these changes
Sep 13, 2022
avelad
added
type: bug
Something isn't working correctly
component: HLS
The issue involves Apple's HLS manifest format
labels
Sep 13, 2022
JulianDomingo
pushed a commit
that referenced
this pull request
Oct 6, 2022
fix: Fix HLS dynamic to static transition - Keep maxSegmentEndTime_ updated in PresentationTimeline by calling notifySegments on each HLS playlist update, so that the seek range doesn't revert to the original playlist size when it becomes static. - Wait to change the presentation type to VOD until after _all_ active playlists have an ENDLIST tag, to avoid missing the final segments in one type or the other. - Stop updating the playlists after transition to VOD. - Update the MSE duration at exactly the same time as we transition to VOD, to avoid a loophole where the UI knows it's VOD, but doesn't have any way to get the correct duration. Previously, this state would persist until the final segments were appended. Closes #4431
JulianDomingo
pushed a commit
that referenced
this pull request
Oct 6, 2022
fix: Fix HLS dynamic to static transition - Keep maxSegmentEndTime_ updated in PresentationTimeline by calling notifySegments on each HLS playlist update, so that the seek range doesn't revert to the original playlist size when it becomes static. - Wait to change the presentation type to VOD until after _all_ active playlists have an ENDLIST tag, to avoid missing the final segments in one type or the other. - Stop updating the playlists after transition to VOD. - Update the MSE duration at exactly the same time as we transition to VOD, to avoid a loophole where the UI knows it's VOD, but doesn't have any way to get the correct duration. Previously, this state would persist until the final segments were appended. Closes #4431
JulianDomingo
pushed a commit
that referenced
this pull request
Oct 7, 2022
🤖 I have created a release *beep* *boop* --- ## [4.1.5](v4.1.4...v4.1.5) (2022-10-07) ### Bug Fixes * allow build without text ([#4506](#4506)) ([1db6265](1db6265)) * allow the playback on platforms when low latency APIs are not supported ([#4485](#4485)) ([55d1390](55d1390)) * check for negative rows before moving ([#4510](#4510)) ([31abae3](31abae3)), closes [#4508](#4508) * Filter unsupported H.264 streams in Xbox ([#4493](#4493)) ([1ecede6](1ecede6)) * Fix choppy HLS startup ([#4553](#4553)) ([1675bff](1675bff)), closes [#4516](#4516) * Fix errors with TS segments on Chromecast ([#4543](#4543)) ([15a1c60](15a1c60)) * Fix hang when seeking to the last segment ([#4537](#4537)) ([72a119d](72a119d)) * Fix HLS dynamic to static transition ([932d37c](932d37c)) * Fix HLS dynamic to static transition ([#4483](#4483)) ([932d37c](932d37c)), closes [#4431](#4431) * Fix in-band key rotation on Xbox One ([#4478](#4478)) ([5a8f09c](5a8f09c)), closes [#4401](#4401) * Respect existing app usage of Cast SDK ([#4523](#4523)) ([9c3a494](9c3a494)), closes [#4521](#4521) * **ttml:** Default TTML background color to transparent if unspecified ([#4496](#4496)) ([16da1e7](16da1e7)), closes [#4468](#4468) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
JulianDomingo
pushed a commit
that referenced
this pull request
Oct 7, 2022
🤖 I have created a release *beep* *boop* --- ## [4.2.2](v4.2.1...v4.2.2) (2022-10-07) ### Bug Fixes * allow build without text ([#4506](#4506)) ([7e93720](7e93720)) * allow the playback on platforms when low latency APIs are not supported ([#4485](#4485)) ([cf8c857](cf8c857)) * check for negative rows before moving ([#4510](#4510)) ([23f39d7](23f39d7)), closes [#4508](#4508) * Filter unsupported H.264 streams in Xbox ([#4493](#4493)) ([914a08a](914a08a)) * Fix choppy HLS startup ([#4553](#4553)) ([950ce69](950ce69)), closes [#4516](#4516) * Fix errors with TS segments on Chromecast ([#4543](#4543)) ([8204db6](8204db6)) * Fix hang when seeking to the last segment ([#4537](#4537)) ([3d6c768](3d6c768)) * Fix HLS dynamic to static transition ([d9ecbf3](d9ecbf3)) * Fix HLS dynamic to static transition ([#4483](#4483)) ([d9ecbf3](d9ecbf3)), closes [#4431](#4431) * Fix in-band key rotation on Xbox One ([#4478](#4478)) ([bc0a588](bc0a588)), closes [#4401](#4401) * Missing AES-128 key of last HLS segment ([#4519](#4519)) ([2c2677f](2c2677f)), closes [#4517](#4517) * Respect existing app usage of Cast SDK ([#4523](#4523)) ([3db2568](3db2568)), closes [#4521](#4521) * **ttml:** Default TTML background color to transparent if unspecified ([#4496](#4496)) ([0b5c985](0b5c985)), closes [#4468](#4468) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
github-actions
bot
added
the
status: archived
Archived and locked; will not be updated
label
Jul 25, 2023
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix: Fix HLS dynamic to static transition
notifySegments on each HLS playlist update, so that the seek range
doesn't revert to the original playlist size when it becomes
static.
active playlists have an ENDLIST tag, to avoid missing the final
segments in one type or the other.
to VOD, to avoid a loophole where the UI knows it's VOD, but
doesn't have any way to get the correct duration. Previously, this
state would persist until the final segments were appended.
Closes #4431