View Source ExSDP.Attribute.Extmap (ExSDP v0.11.0)

This module represents extmap (RFC 8285).

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

@type attr_key() :: :extmap

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

@type direction() :: :sendonly | :recvonly | :sendrecv | :inactive | nil
@type extension_id() :: 1..14
@type reason() :: :invalid_extmap | :invalid_id | :invalid_direction | :invalid_uri

Reason of parsing failure.

@type t() :: %ExSDP.Attribute.Extmap{
  attributes: [String.t()],
  direction: direction(),
  id: extension_id(),
  uri: String.t()
}

Link to this section Functions

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