HLS.Playlist.Unmarshaler protocol (HTTP Live Streaming (HLS) library v2.4.0)

View Source

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns a list of modules implementing the tag behaviour that are used to define the playlist.

Types

t()

@type t() :: term()

All the types that implement this protocol.

tag_map_t()

@type tag_map_t() :: %{
  required(HLS.Playlist.Tag.tag_id_t() | {pos_integer(), :segment}) => [
    HLS.Playlist.Tag.t()
  ]
}

Functions

load_tags(playlist, tags)

@spec load_tags(t(), tag_map_t()) :: t()

supported_tags(playlist)

@spec supported_tags(t()) :: [HLS.Playlist.Tag.behaviour_t()]

Returns a list of modules implementing the tag behaviour that are used to define the playlist.