View Source ExSDP.Attribute.Extmap (ExSDP v1.1.0)

This module represents extmap (RFC 8285).

Summary

Types

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

Reason of parsing failure.

t()

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

Functions

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