mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-17 16:26:39 +03:00
a16b1ac8a4
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