View Source ExWebRTC.RTPTransceiver (ex_webrtc v0.6.3)

Implementation of the RTCRtpTransceiver.

Summary

Types

Possible directions of the transceiver.

Possible types of media that a transceiver can handle.

t()

Struct representing a transceiver.

Types

@type direction() :: :sendonly | :recvonly | :sendrecv | :inactive | :stopped

Possible directions of the transceiver.

For the exact meaning, refer to the RTCRtpTransceiver: direction property.

@type id() :: integer()
@type kind() :: :audio | :video

Possible types of media that a transceiver can handle.

@type t() :: %ExWebRTC.RTPTransceiver{
  codecs: [ExWebRTC.RTPCodecParameters.t()],
  current_direction: direction() | nil,
  direction: direction(),
  header_extensions: [ExSDP.Attribute.Extmap.t()],
  id: id(),
  kind: kind(),
  mid: String.t() | nil,
  receiver: ExWebRTC.RTPReceiver.t(),
  sender: ExWebRTC.RTPSender.t(),
  stopped: boolean(),
  stopping: boolean()
}

Struct representing a transceiver.

The fields mostly match these of RTCRtpTransceiver, except for:

  • id - to uniquely identify the transceiver.
  • kind - kind of the handled media, added for convenience.
  • codecs and header_extensions - codecs and RTP header extensions that the transceiver can handle.