View Source ExWebRTC.RTPReceiver (ex_webrtc v0.7.0)

Implementation of the RTCRtpReceiver.

Summary

Types

t()

Struct representing a receiver.

Types

@type id() :: integer()
@type t() :: %ExWebRTC.RTPReceiver{
  codec: ExWebRTC.RTPCodecParameters.t() | nil,
  id: id(),
  track: ExWebRTC.MediaStreamTrack.t()
}

Struct representing a receiver.

The fields mostly match these of RTCRtpReceiver, except for:

  • id - to uniquely identify the receiver.
  • codec - codec this receiver is expected to receive.