Class SessionDescriptionMessage

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

public class SessionDescriptionMessage extends SignalingMessage
Represents a session description message used in WebRTC signaling.

This class is used for both offer and answer messages, which contain Session Description Protocol (SDP) information.

Author:
Alex Andres
  • Constructor Details

    • SessionDescriptionMessage

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

      public SessionDescriptionMessage(String type, String from, String to, String sdp)
      Creates a new SessionDescriptionMessage with the specified type, sender, recipient, and SDP.
      Parameters:
      type - the message type (either "offer" or "answer").
      from - the sender ID.
      to - the recipient ID.
      sdp - the SDP string.
  • Method Details