View Source ExSDP.Attribute.RTPMapping (ExSDP v1.0.0)

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

@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()
}

Functions

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