Skip to content

HLS live edge setting#43

Merged
Baraujo25 merged 2 commits intodevelopmentfrom
HLS_LIVE_EDGE_SETTING
Apr 20, 2026
Merged

HLS live edge setting#43
Baraujo25 merged 2 commits intodevelopmentfrom
HLS_LIVE_EDGE_SETTING

Conversation

@Baraujo25
Copy link
Copy Markdown
Collaborator

@Baraujo25 Baraujo25 commented Apr 20, 2026

HLS gains an optional “Start from live edge” path for live/EVENT playlists. Segment durations are handled with sub-second precision where it matters for pacing and live-edge calculations.

Motivation:

  • Long EVENT playlists always started from the first listed segment; load tests for live-like behavior need a live-edge-aligned starting point (RFC 8216–style window from the end of the playlist).
  • Precision: Whole-second truncation in duration reporting and playlist parsing skewed timing and edge calculations.

Changes:

  • New checkbox in the sampler UI (disabled when MPEG-DASH protocol is selected; tooltip states it applies to live/EVENT only).
  • Persisted on com.blazemeter.jmeter.hls.logic.HlsSampler and exposed through VideoStreamingSampler for the streaming implementation.
  • HlsSampler: When enabled on a non-VOD playlist with no prior segment, skip older segments so playback starts near the live edge, using three target durations of media time from the latest segments (RFC 8216 Section 6.3.3 style). Resume behavior continues from the last played segment.
  • Playlist: EXTINF durations converted with Math.round to milliseconds; added getTargetDurationSeconds() for live-edge thresholding.

@3dgiordano 3dgiordano changed the title Hls live edge setting HLS live edge setting Apr 20, 2026
@Baraujo25 Baraujo25 force-pushed the FIX_DASH_MANIFEST_REFRESH branch from a339639 to 4cec5cd Compare April 20, 2026 18:47
Prior to this modifications, hls started from the first segment on the
buffer provided by the mediaplaylist.
@Baraujo25 Baraujo25 force-pushed the HLS_LIVE_EDGE_SETTING branch from d7af512 to 72f7ef6 Compare April 20, 2026 18:47
Base automatically changed from FIX_DASH_MANIFEST_REFRESH to development April 20, 2026 19:04
@Baraujo25 Baraujo25 merged commit 5972e13 into development Apr 20, 2026
1 check passed
@Baraujo25 Baraujo25 deleted the HLS_LIVE_EDGE_SETTING branch April 20, 2026 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants