HLX.Muxer behaviour (HLS Reader and Writer v0.6.0)

View Source

Behaviour describing muxing media samples to HLS segments.

Summary

Types

state()

@type state() :: any()

Callbacks

flush_segment(state)

@callback flush_segment(state()) :: {iodata(), state()}

get_init_header(state)

(optional)
@callback get_init_header(state()) :: binary()

init(list)

@callback init([HLX.Track.t()]) :: state()

push(sample, state)

@callback push(sample :: HLX.Sample.t(), state()) :: state()

push_parts(samples, state)

(optional)
@callback push_parts(samples :: [HLX.Sample.t()], state()) :: state()