GNOME Bugzilla – Bug 772810
hlsdemux: Always start playback at first fragment
Last modified: 2018-11-03 13:56:06 UTC
Created attachment 337517 [details] [review] hlsdemux: Always start playback at first fragment Section 6.3.3 of the spec does not specify playback should be started three fragments from the end. It merely states that a client should not start playback closer than three fragments from the end on a live stream. Until we have support for EXT-X-START, we should probably start at the first fragment unconditionally.
Created attachment 337542 [details] [review] hlsdemux: Always start playback at first fragment Updated patch
The intent of starting as late as possible in live streams is because people generally want minimum latency compared to the live feed.
(In reply to Jan Schmidt from comment #2) > The intent of starting as late as possible in live streams is because people > generally want minimum latency compared to the live feed. Valid point. As the spec is ambiguous in this regard and actually suggests that it is application/implementation dependent, what do you think about a new property that enables and application to override the default behavior? Maybe call it "first-fragment-live" with a default value of -3, and any negative number indicating the fragment from the end of the playlist (automatically guaranteeing at least more than 3 fragments as per spec), and a positive number or zero as the fragment from beginning: first-fragment-live : Number of fragments from the beginning (positive number) or end (negative number) of a live playlist. flags: readable, writable Integer. Range: -2147483648 - 2147483647 Default: -3 This way, an application could customize this behavior as needed, or just leave it at the default behavior. Thoughts?
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/432.