Membrane.HTTPAdaptiveStream.Manifest.SegmentAttribute behaviour (Membrane HTTP Adaptive Stream plugin v0.20.2)

View Source

Definition of Segment Attributes and behaviour for serializing them. This module should also contain macros for generating different types of attributes

Summary

Callbacks

Callback for serializing a segment attribute to a string. It is required for each implementation of this behavior.

Functions

Creates a definition of a discontinuity segment attribute.

Types

segment_type_t()

@type segment_type_t() :: :discontinuity | :creation_time | atom()

t()

@type t() :: {type :: segment_type_t(), arguments :: any()}

Callbacks

serialize(t)

@callback serialize(t()) :: [String.t()]

Callback for serializing a segment attribute to a string. It is required for each implementation of this behavior.

Functions

discontinuity(header, discontinuity_index)

(macro)

Creates a definition of a discontinuity segment attribute.