ExWebRTC.ICECandidate (ex_webrtc v0.8.1)

View Source

Implementation of the RTCIceCandidate.

Summary

Types

t()

@type t() :: %ExWebRTC.ICECandidate{
  candidate: binary(),
  sdp_m_line_index: non_neg_integer() | nil,
  sdp_mid: binary() | nil,
  username_fragment: binary() | nil
}

Functions

from_json(json)

@spec from_json(%{required(String.t()) => String.t() | non_neg_integer() | nil}) ::
  t()

to_json(c)

@spec to_json(t()) :: %{required(String.t()) => String.t() | non_neg_integer() | nil}