View Source ExRTP.Packet.Extension.SourceDescription (ex_rtp v0.4.0)

Source Description (SDES) Extension described in RFC 7941.

Summary

Types

t()

Struct representing SDES Extension.

Types

@type t() :: %ExRTP.Packet.Extension.SourceDescription{
  text: binary(),
  type: atom() | nil
}

Struct representing SDES Extension.

The type field is is purely informational and ignored, when encoding/decoding the extension, as the SDES item types are determined by the header extension ID value, which is dynamically assigned in signaling and passed to the to_raw/2 function.

Functions

Callback implementation for ExRTP.Packet.Extension.from_raw/1.

@spec new(binary(), atom() | nil) :: t()

Create new ExRTP.Packet.Extension.SourceDescription.t/0 struct.

Link to this function

to_raw(source_description, id)

View Source

Callback implementation for ExRTP.Packet.Extension.to_raw/2.