View Source Membrane.RTP.PayloadFormatResolver (Membrane RTP plugin v0.21.0)

Wrapper over Membrane.RTP.PayloadFormat that returns payloaders and depayloaders, or an error if they can't be resolved.

Link to this section Summary

Functions

Tries to resolve a depayloader based on given encoding.

Tries to resolve a payloader based on given encoding.

Link to this section Types

@type encoding_mapper_t() :: %{required(Membrane.RTP.encoding_name_t()) => module()}

Link to this section Functions

@spec depayloader(Membrane.RTP.encoding_name_t()) :: {:ok, module()} | :error

Tries to resolve a depayloader based on given encoding.

Link to this function

frame_detector(encoding)

View Source
@spec frame_detector(atom()) :: {:ok, (binary() -> boolean())} | :error
Link to this function

keyframe_detector(encoding)

View Source
@spec keyframe_detector(atom()) :: {:ok, (binary() -> boolean())} | :error
@spec payloader(Membrane.RTP.encoding_name_t()) :: {:ok, module()} | :error

Tries to resolve a payloader based on given encoding.