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

This module represents RTP mapping.

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

Specs

attr_key() :: :rtpmap

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

Specs

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

Link to this section Functions

Specs

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