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

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

Summary

Functions

Tries to resolve a depayloader based on given encoding.

Tries to resolve a payloader based on given encoding.

Types

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

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.