View Source ExSDP.Attribute.RTPMapping (ExSDP v0.10.2)

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

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

Link to this section Summary

Types

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

t()

Link to this section Types

@type attr_key() :: :rtpmap

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

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

Link to this section Functions

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