forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix buffering due to re-fetch (SegmentTimeline)
In DASH with SegmentTimeline, we had previously assumed that the timeline would only ever have items added to its end. In practice, some content adds segments to the beginning of the timeline in an update. When this happened, assumptions higher up the stack were broken, and StreamingEngine began streaming from the wrong position, re-fetching segments that were already buffered. It is relatively simple to filter the incoming segment references to ensure that we only ever grow our list from the end. This fixes assumptions in other components and resolves the re-fetching issue for SegmentTimeline-based content. PR shaka-project#3419 will further address issues with SegmentTemplate+duration. See also issue shaka-project#3354 b/186457868 Change-Id: Ibc03a697dd6a2a6f5e0f539cb7cf94bd9a63b495
- Loading branch information
1 parent
53173c5
commit 3222370
Showing
2 changed files
with
55 additions
and
9 deletions.
There are no files selected for viewing
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
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