Membrane RTP format v0.2.0-alpha 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

Encoding name of RTP payload.

RTP Payload type as a number.

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

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

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)

Specs

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

Encoding name of RTP payload.

Specs

payload_type_t() :: 0..127

RTP Payload type as a number.

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
  | :DVI4
  | :LPC
  | :PCMA
  | :G722
  | :L16
  | :L16
  | :QCELP
  | :CN
  | :MPA
  | :G728
  | :DVI4
  | :DVI4
  | :G729
  | :CELB
  | :JPEG
  | :NV
  | :H261
  | :MPV
  | :MP2T
  | :H263

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

Specs

t() :: %Membrane.RTP{payload_type: payload_type_t()}