Membrane.RTC.Engine.Endpoint.HLS.HLSConfig (Membrane RTC Engine HLS Endpoint v0.9.0)

View Source

Module representing Membrane.HTTPAdaptiveStream.SinkBin configuration for the HLS endpoint.

Summary

Types

t()

To read more about config options go to module Membrane.HTTPAdaptiveStream.SinkBin and read options descriptions.

Types

t()

@type t() :: %Membrane.RTC.Engine.Endpoint.HLS.HLSConfig{
  cleanup_after: Membrane.Time.t() | nil,
  header_naming_fun: (Membrane.HTTPAdaptiveStream.Manifest.Track.t(),
                      counter :: non_neg_integer() ->
                        String.t()),
  hls_mode: :muxed_av | :separate_av,
  manifest_module: Membrane.HTTPAdaptiveStream.Manifest.t(),
  manifest_name: String.t(),
  mode: :live | :vod,
  partial_segment_duration: Membrane.Time.t() | nil,
  persist?: boolean(),
  segment_duration: Membrane.Time.t(),
  segment_naming_fun: (Membrane.HTTPAdaptiveStream.Manifest.Track.t() ->
                         String.t()),
  storage: (Path.t() -> Membrane.HTTPAdaptiveStream.Storage.config_t()),
  target_window_duration: pos_integer() | :infinity
}

To read more about config options go to module Membrane.HTTPAdaptiveStream.SinkBin and read options descriptions.

  • segment_duration - The target duration of the regular segments.
  • partial_segment_duration - The target duration of the partial segments. If not set then the bin won't produce any partial segments.

Functions

default_storage(directory)

@spec default_storage(String.t()) :: any()