Membrane.HTTPAdaptiveStream.Manifest.SegmentAttribute behaviour (Membrane HTTP Adaptive Stream plugin v0.4.0) View Source

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

Link to this section 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.

Link to this section Types

Specs

segment_type_t() :: :discontinuity

Specs

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

Link to this section Callbacks

Specs

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

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

Link to this section Functions

Link to this macro

discontinuity(header, discontinuity_index)

View Source (macro)

Creates a definition of a discontinuity segment attribute.