View Source ExSDP (ExSDP v1.0.0)
This module represents the SDP Session.
Its fields directly correspond to those defined in RFC4566
Summary
Functions
Returns new sdp struct.
Types
@type t() :: %ExSDP{ attributes: [ExSDP.Attribute.t()], bandwidth: [ExSDP.Bandwidth.t()], connection_data: ExSDP.ConnectionData.t() | nil, email: binary() | nil, encryption: ExSDP.Encryption.t() | nil, media: [ExSDP.Media.t()], origin: ExSDP.Origin.t(), phone_number: binary() | nil, session_information: binary() | nil, session_name: binary(), time_repeats: [ExSDP.RepeatTimes.t()], time_zones_adjustments: ExSDP.Timezone.t() | nil, timing: ExSDP.Timing.t() | nil, uri: binary() | nil, version: non_neg_integer() }
Functions
@spec add_attribute(t() | ExSDP.Media.t(), ExSDP.Attribute.t()) :: t() | ExSDP.Media.t()
@spec add_attributes(t() | ExSDP.Media.t(), [ExSDP.Attribute.t()]) :: t() | ExSDP.Media.t()
@spec add_media(t(), ExSDP.Media.t() | [ExSDP.Media.t()]) :: t() | ExSDP.Media.t()
@spec delete_attribute(t() | ExSDP.Media.t(), ExSDP.Attribute.key()) :: t() | ExSDP.Media.t()
@spec delete_attributes(t() | ExSDP.Media.t(), [ExSDP.Attribute.key()]) :: t() | ExSDP.Media.t()
@spec get_attribute(t() | ExSDP.Media.t(), ExSDP.Attribute.key()) :: ExSDP.Attribute.t() | nil
@spec get_attributes(t() | ExSDP.Media.t(), ExSDP.Attribute.key()) :: [ ExSDP.Attribute.t() ]
@spec new( version: non_neg_integer(), username: binary(), session_id: integer(), session_version: integer(), address: ExSDP.Address.t(), session_name: binary() ) :: t()
Returns new sdp struct.
By default:
version
is0
username
,session_id
,session_version
andaddress
- refer toOrigin.new/1
session_name
is-
See ExSDP.Parser.parse/1
.