Membrane Protocol SDP v0.1.0 Membrane.Protocol.SDP.Media View Source

This module represents Media field of SDP.

For more details please see RFC4566 Section 5.14

Link to this section Summary

Types

t()

Represents type of media. In RFC4566 there are defined "audio", "video", "text", "application", and "message" types

Link to this section Types

Link to this type

t() View Source
t() :: %Membrane.Protocol.SDP.Media{
  attributes: [binary()],
  bandwidth: [Membrane.Protocol.SDP.Bandwidth.t()],
  connection_data: [Membrane.Protocol.SDP.ConnectionData.sdp_address()],
  encryption: Membrane.Protocol.SDP.Encryption.t() | nil,
  fmt: binary() | [0..127],
  ports: [:inet.port_number()],
  protocol: binary(),
  title: binary() | nil,
  type: type()
}

Link to this type

type() View Source
type() :: :audio | :video | :text | :application | :message | binary()

Represents type of media. In RFC4566 there are defined "audio", "video", "text", "application", and "message" types.

Known types are represented as atoms others are binaries.

Link to this section Functions

Link to this function

parse(media) View Source
parse(binary()) ::
  {:ok, t()} | {:error, :invalid_media_spec | :malformed_port_number}

Link to this function

parse_optional(lines, media) View Source
parse_optional([binary()], t()) ::
  {:ok, {[binary()], t()}} | {:error, atom()}