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

This module represents fmtp (RFC 5576).

Parameters for H264 (not all, RFC 6184), VP8, VP9 and OPUS (RFC 7587) 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

Specs

attr_key() :: :fmtp

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

Specs

reason() ::
  :unsupported_parameter | :string_nan | :string_not_hex | :string_not_0_nor_1

Reason of parsing failure.

Specs

t() :: %ExSDP.Attribute.FMTP{
  cbr: boolean() | 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(),
  stereo: boolean() | nil,
  usedtx: boolean() | nil,
  useinbandfec: boolean() | nil
}

Link to this section Functions

Specs

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