RTCDtlsTransport

The DTLS transport that RTP and SCTP packets go over.

class webrtc.interfaces.rtc_dtls_transport.RTCDtlsTransport(native_obj=None)

The DTLS transport that secures the packets of a webrtc.RTCPeerConnection.

The RTP and RTCP packets of its senders and receivers, and the SCTP packets of its data channels, go over it.

See MDN: RTCDtlsTransport.

Events:

Events

Handlers are registered with on().

property ice_transport: RTCIceTransport

The ICE transport the DTLS packets go over.

See MDN: RTCDtlsTransport/iceTransport.

Type:

webrtc.RTCIceTransport

property state: RTCDtlsTransportState

How far the DTLS handshake got, or whether it failed or closed.

See MDN: RTCDtlsTransport/state.

Type:

webrtc.RTCDtlsTransportState

get_remote_certificates()

Returns the certificates the remote peer presented in the DTLS handshake, once it is done.

See MDN: RTCDtlsTransport/getRemoteCertificates.

Returns:

list of bytes – The DER-encoded certificates, with the peer’s own first. The list is empty before the handshake.

Return type:

list[bytes]