Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reload HLS media playlist when merging delta update fails
Issue: #5011 PiperOrigin-RevId: 350550204
- Loading branch information
1 parent
6dec832
commit 6e8af81
Showing
5 changed files
with
72 additions
and
42 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
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
17 changes: 17 additions & 0 deletions
17
.../src/test/assets/media/m3u8/live_low_latency_media_can_skip_until_full_reload_after_error
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#EXTM3U | ||
#EXT-X-SERVER-CONTROL:CAN-SKIP-UNTIL=24 | ||
#EXT-X-TARGETDURATION:4 | ||
#EXT-X-VERSION:3 | ||
#EXT-X-MEDIA-SEQUENCE:20 | ||
#EXTINF:4.00000, | ||
fileSequence20.ts | ||
#EXTINF:4.00000, | ||
fileSequence21.ts | ||
#EXTINF:4.00000, | ||
fileSequence22.ts | ||
#EXTINF:4.00000, | ||
fileSequence23.ts | ||
#EXTINF:4.00000, | ||
fileSequence24.ts | ||
#EXTINF:4.00000, | ||
fileSequence25.ts |
I'm working on an issue with stale playlists snapshots, the code below:
Potentially uses a very stale
playlistSnapshot
(for example, if you change tracks the previousMediaPlaylistBundle
can stay around for longer the window size, so all of the segments the snapshot contains age out. In this case I think you will repeatedly throw theHlsPlaylistParser.DeltaUpdateException
until the stale snapshot is discarded.What I did is:
playlistSnapshot
before the reload.Suspect you also need to add to the request URL to avoid having the origin send a partial playlist, I think this was added in later versions? @marcbaechinger