View Source Membrane.HTTPAdaptiveStream.Sink.SegmentDuration (Membrane HTTP Adaptive Stream plugin v0.12.0)

Module representing a segment duration range that should appear in a playlist.

The minimum and target durations are relevant if sink is set to work in low latency mode as the durations of partial segment can greatly vary.

Link to this section Summary

Functions

Creates a new segment duration with a target duration.

Creates a new segment duration with a minimum and target duration.

Link to this section Types

@type t() :: %Membrane.HTTPAdaptiveStream.Sink.SegmentDuration{
  min: Membrane.Time.t(),
  target: Membrane.Time.t()
}

Link to this section Functions

@spec new(Membrane.Time.t()) :: t()

Creates a new segment duration with a target duration.

The minimum duration is set to the target one.

@spec new(Membrane.Time.t(), Membrane.Time.t()) :: t()

Creates a new segment duration with a minimum and target duration.