ExSDP.Origin (ExSDP v0.2.0) View Source

This module represents the Origin field of SDP that represents the originator of the session.

If the username is set to - the originating host does not support the concept of user IDs.

The username MUST NOT contain spaces.

For more details please see RFC4566 Section 5.2

Link to this section Summary

Link to this section Types

Specs

reason() :: :invalid_address | ExSDP.ConnectionData.reason()

Specs

t() :: %ExSDP.Origin{
  address: ExSDP.ConnectionData.sdp_address(),
  session_id: binary(),
  session_version: binary(),
  username: binary() | nil
}

Link to this section Functions

Specs

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