Module webrtc.java

Class RTCDtlsTransport


  • public class RTCDtlsTransport
    extends dev.onvoid.webrtc.internal.NativeObject
    Allows an application to access information about the Datagram Transport Layer Security (DTLS) transport over which RTP and RTCP packets are sent and received by RTCRtpSender's and RTCRtpReceiver's, as well other data such as SCTP packets sent and received by data channels. RTCDtlsTransport objects are constructed as a result of calls to setLocalDescription and setRemoteDescription. Each RTCDtlsTransport object represents the DTLS transport layer for the RTP or RTCP component of a specific RTCRtpTransceiver, or a group of RTCRtpTransceivers if such a group has been negotiated via [BUNDLE].
    Author:
    Alex Andres
    • Constructor Detail

      • RTCDtlsTransport

        public RTCDtlsTransport()
    • Method Detail

      • getIceTransport

        public RTCIceTransport getIceTransport()
        Returns the underlying transport that is used to send and receive packets. The underlying transport may not be shared between multiple active RTCDtlsTransport objects.
        Returns:
        The transport that is used to send and receive packets.
      • getState

        public RTCDtlsTransportState getState()
        Returns the current Datagram Transport Layer Security (DTLS) transport state.
        Returns:
        The current DTLS transport state.
      • getRemoteCertificates

        public List<RTCCertificatePEM> getRemoteCertificates()
        Returns the certificate chain in use by the remote side, with each certificate encoded in PEM format.
        Returns:
        The certificate chain in use by the remote side.
      • registerObserver

        public void registerObserver​(RTCDtlsTransportObserver observer)
        Register an observer to receive events from this transport. The observer will replace the previously registered observer.
        Parameters:
        observer - The new DTLS transport observer.
      • unregisterObserver

        public void unregisterObserver()
        Unregister the last set RTCDtlsTransportObserver.