GNOME Bugzilla – Bug 758987
hlsdemux: Resync live playlists to the 3rd newest fragment if we fall off the playlist
Last modified: 2015-12-04 16:07:37 UTC
See commit message
Created attachment 316709 [details] [review] hlsdemux: Resync live playlists to the 3rd newest fragment if we fall off the playlist As HLS does not provide any way of knowing the server's clock, and we do buffering of "live" streams, at some point we will fall behind the server in many cases and would have to advance to a fragment that is not in the playlist anymore. Previously we would've just resynced to the next oldest fragment that is still there, but this causes problems as from this point onwards we would always fall off the playlist again all the time. Instead we now resync and move to the 3rd newest fragment like we would do when starting playback of a live stream.
commit 821320fbc4f978388a13d5862cf8872004dd26fd Author: Sebastian Dröge <sebastian@centricular.com> Date: Thu Dec 3 11:46:10 2015 +0200 hlsdemux: Resync live playlists to the 3rd newest fragment if we fall off the playlist As HLS does not provide any way of knowing the server's clock, and we do buffering of "live" streams, at some point we will fall behind the server in many cases and would have to advance to a fragment that is not in the playlist anymore. Previously we would've just resynced to the next oldest fragment that is still there, but this causes problems as from this point onwards we would always fall off the playlist again all the time. Instead we now resync and move to the 3rd newest fragment like we would do when starting playback of a live stream. https://bugzilla.gnome.org/show_bug.cgi?id=758987