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

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

@type segment_type_t() :: :discontinuity | :creation_time | atom()
@type t() :: {type :: segment_type_t(), arguments :: any()}

Link to this section Callbacks

@callback 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.