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

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

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

Callbacks

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

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

Functions

Link to this macro

discontinuity(header, discontinuity_index)

View Source (macro)

Creates a definition of a discontinuity segment attribute.