View Source HLS.Playlist.Master (HTTP Live Streaming (HLS) library v2.0.0)

Summary

Types

@type t() :: %HLS.Playlist.Master{
  alternative_renditions: [HLS.AlternativeRendition.t()],
  independent_segments: boolean(),
  streams: HLS.VariantStream.t(),
  uri: URI.t() | nil,
  version: pos_integer()
}

Functions

Link to this function

add_alternative_rendition(master, alternative)

View Source
@spec add_alternative_rendition(t(), HLS.AlternativeRendition.t()) :: t()
Link to this function

filter_alternative_renditions_for_stream(stream, master)

View Source
@spec filter_alternative_renditions_for_stream(HLS.VariantStream.t(), t()) :: [
  HLS.AlternativeRendition.t()
]

Returns the alternative renditions for this stream.

Link to this function

set_default(master, rendition_name)

View Source
@spec set_default(t(), binary()) :: t()
Link to this function

update_alternative_rendition(master, rendition_name, rendition_type, update_fn)

View Source
@spec update_alternative_rendition(
  t(),
  binary(),
  HLS.AlternativeRendition.type_t(),
  (HLS.AlternativeRendition.t() -> HLS.AlternativeRendition.t())
) :: t()
@spec variant_streams(t()) :: [HLS.VariantStream.t()]

Returns all variant streams of the playlist.