View Source Membrane.RTP.Packet.PayloadType (Membrane RTP plugin v0.21.0)

This module contains utility to translate numerical payload type into an atom value.

Link to this section Summary

Functions

Gets the clock rate from numerical payload type according to RFC3551. For quick reference check datasheet.

Gets the name of used encoding from numerical payload type according to RFC3551. For quick reference check datasheet.

Checks if numerical payload type should be assigned to format type dynamically.

Link to this section Functions

@spec get_clock_rate(payload_type :: Membrane.RTP.payload_type_t()) ::
  Membrane.RTP.clock_rate_t() | :dynamic

Gets the clock rate from numerical payload type according to RFC3551. For quick reference check datasheet.

@spec get_encoding_name(payload_type :: Membrane.RTP.payload_type_t()) ::
  Membrane.RTP.static_encoding_name_t() | :dynamic

Gets the name of used encoding from numerical payload type according to RFC3551. For quick reference check datasheet.

Link to this function

is_dynamic(payload_type)

View Source
@spec is_dynamic(payload_type :: Membrane.RTP.payload_type_t()) :: boolean()

Checks if numerical payload type should be assigned to format type dynamically.