Module webrtc.java

Class RTCSessionDescription


  • public class RTCSessionDescription
    extends Object
    The RTCSessionDescription class is used by an RTCPeerConnection to expose local and remote session descriptions.
    Author:
    Alex Andres
    • Field Detail

      • sdpType

        public final RTCSdpType sdpType
        The type of this RTCSessionDescription.
      • sdp

        public final String sdp
        The string representation of the SDP, if type is "ROLLBACK", this member is unused.
    • Constructor Detail

      • RTCSessionDescription

        public RTCSessionDescription​(RTCSdpType sdpType,
                                     String sdp)
        Creates an instance of RTCSessionDescription with the specified SDP and the SDP type.
        Parameters:
        sdpType - The type of this RTCSessionDescription.
        sdp - The string representation of the SDP; unused if type is RTCSdpType.ROLLBACK.