Class IceCandidateMessage

java.lang.Object
dev.onvoid.webrtc.examples.web.model.SignalingMessage
dev.onvoid.webrtc.examples.web.model.IceCandidateMessage

public class IceCandidateMessage extends SignalingMessage
Represents an ICE candidate message used in WebRTC signaling.

This class is used to exchange ICE candidates between peers during the connection establishment process.

Author:
Alex Andres
  • Constructor Details

    • IceCandidateMessage

      public IceCandidateMessage()
      Default constructor required for JSON deserialization.
    • IceCandidateMessage

      public IceCandidateMessage(String from, String to)
      Creates a new IceCandidateMessage with the specified sender and recipient.
      Parameters:
      from - the sender ID.
      to - the recipient ID.
    • IceCandidateMessage

      public IceCandidateMessage(String from, String to, String candidate, String sdpMid, int sdpMLineIndex)
      Creates a new IceCandidateMessage with the specified sender, recipient, and candidate information.
      Parameters:
      from - the sender ID.
      to - the recipient ID.
      candidate - the candidate string.
      sdpMid - the SDP mid.
      sdpMLineIndex - the SDP mline index.
  • Method Details