Membrane RTP format v0.3.1 Membrane.RTP View Source

This module provides caps struct for RTP packet.

Link to this section Summary

Types

Rate of the clock used for RTP timestamps in Hz

Dynamically assigned encoding names for payload types >= 96

RTP payload type that can be dynamically mapped to encoding and clock rate.

Encoding name of RTP payload.

RTP payload type.

The source of a stream of RTP packets, identified by a 32-bit numeric identifier.

Predefined names of encoding for static payload types (< 96).

RTP payload type that is statically mapped to encoding and clock rate.

t()

Link to this section Types

Specs

clock_rate_t() :: non_neg_integer()

Rate of the clock used for RTP timestamps in Hz

Link to this type

dynamic_encoding_name_t()

View Source

Specs

dynamic_encoding_name_t() :: atom()

Dynamically assigned encoding names for payload types >= 96

They should be atoms matching the encoding name in SDP's attribute rtpmap. This is usually defined by RFC for that payload format (e.g. for H264 there's RFC 6184 defining it must be "H264", so the atom :H264 should be used https://tools.ietf.org/html/rfc6184#section-8.2.1)

Link to this type

dynamic_payload_type_t()

View Source

Specs

dynamic_payload_type_t() :: 96..127

RTP payload type that can be dynamically mapped to encoding and clock rate.

Specs

encoding_name_t() :: static_encoding_name_t() | dynamic_encoding_name_t()

Encoding name of RTP payload.

Specs

payload_type_t() :: static_payload_type_t() | dynamic_payload_type_t()

RTP payload type.

Specs

ssrc_t() :: pos_integer()

The source of a stream of RTP packets, identified by a 32-bit numeric identifier.

Link to this type

static_encoding_name_t()

View Source

Specs

static_encoding_name_t() ::
  :PCMU
  | :GSM
  | :G732
  | :DVI4
  | :LPC
  | :PCMA
  | :G722
  | :L16
  | :QCELP
  | :CN
  | :MPA
  | :G728
  | :G729
  | :CELB
  | :JPEG
  | :NV
  | :H261
  | :MPV
  | :MP2T
  | :H263

Predefined names of encoding for static payload types (< 96).

Link to this type

static_payload_type_t()

View Source

Specs

static_payload_type_t() :: 0..95

RTP payload type that is statically mapped to encoding and clock rate.

Specs

t() :: %Membrane.RTP{}

Link to this section Functions

Link to this macro

is_payload_type_dynamic(payload_type)

View Source (macro)

Determines if payload type is dynamic_payload_type_t/0.

Link to this macro

is_payload_type_static(payload_type)

View Source (macro)

Determines if payload type is static_payload_type_t/0.