Skip to content

Commit

Permalink
Change to two segments
Browse files Browse the repository at this point in the history
  • Loading branch information
philipgiuliani committed Oct 7, 2024
1 parent e887df1 commit 4a577c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/membrane/hls/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ defmodule Membrane.HLS.SinkBin do
# We wait until we have at least 3 segments before starting the initial sync process.
# This ensures a stable, interruption free playback for the clients.
minimum_segment_time =
Membrane.Time.as_milliseconds(state.opts.target_segment_duration, :round) * 3
Membrane.Time.as_milliseconds(state.opts.target_segment_duration, :round) * 2

# Tells when we should do it.
deadline = now + Membrane.Time.as_milliseconds(safety_delay, :round) + minimum_segment_time
Expand Down

0 comments on commit 4a577c4

Please sign in to comment.