View Source ExSDP.Attribute.FMTP (ExSDP v0.8.0)

This module represents fmtp (RFC 5576).

Parameters for:

  • H264 (not all, RFC 6184),
  • VP8, VP9, OPUS (RFC 7587)
  • RTX (RFC 4588)
  • FLEXFEC (RFC 8627)
  • Telephone Events (RFC 4733)
  • RED (RFC 2198) are currently supported.

Link to this section Summary

Types

Key that can be used for searching this attribute using ExSDP.Media.get_attribute/2.

Reason of parsing failure.

t()

Link to this section Types

@type attr_key() :: :fmtp

Key that can be used for searching this attribute using ExSDP.Media.get_attribute/2.

@type payload_type_t() :: 0..127
@type reason() :: :string_nan | :string_not_hex | :string_not_0_nor_1

Reason of parsing failure.

@type t() :: %ExSDP.Attribute.FMTP{
  apt: payload_type_t() | nil,
  cbr: boolean() | nil,
  dtmf_tones: String.t() | nil,
  level_asymmetry_allowed: boolean() | nil,
  max_br: non_neg_integer() | nil,
  max_dpb: non_neg_integer() | nil,
  max_fr: non_neg_integer() | nil,
  max_fs: non_neg_integer() | nil,
  max_mbps: non_neg_integer() | nil,
  max_smbps: non_neg_integer() | nil,
  maxaveragebitrate: non_neg_integer() | nil,
  maxplaybackrate: non_neg_integer() | nil,
  minptime: non_neg_integer() | nil,
  packetization_mode: non_neg_integer() | nil,
  profile_id: non_neg_integer() | nil,
  profile_level_id: non_neg_integer() | nil,
  pt: term(),
  redundant_payloads: [payload_type_t()] | nil,
  repair_window: non_neg_integer() | nil,
  rtx_time: non_neg_integer() | nil,
  stereo: boolean() | nil,
  unknown: [String.t()],
  usedtx: boolean() | nil,
  useinbandfec: boolean() | nil
}

Link to this section Functions

@spec parse(binary()) :: {:ok, t()} | {:error, reason()}