ExSDP.Attribute.RTPMapping (ExSDP v1.1.2)

View Source

This module represents RTP mapping, a media-level attribute named rtpmap.

This attribute is defined in Chapter 6.6 of RFC8866 (SDP)

Summary

Types

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

t()

Types

attr_key()

@type attr_key() :: :rtpmap

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

payload_type_t()

@type payload_type_t() :: 0..127

t()

@type t() :: %ExSDP.Attribute.RTPMapping{
  clock_rate: non_neg_integer(),
  encoding: binary(),
  params: non_neg_integer() | nil,
  payload_type: payload_type_t()
}

Functions

parse(mapping, opts)

@spec parse(binary(), opts :: []) ::
  {:ok, t()}
  | {:error,
     :string_nan | :invalid_pt | :only_audio_can_have_params | :invalid_rtpmap}