Compartir a través de


state (RTCDtlsTransportState) property

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The current state of the DTLS transport.

Syntax

enum RTCDtlsTransportState {
    "new",
    "connecting",
    "connected",
    "closed"
};

Property values

Type:

The current state of the DTLS transport.

Value Condition
new

The RTCDtlsTransport object has been created and has not started negotiating yet.

connecting

DTLS is in the process of negotiating a secure connection. Once a secure connection is negotiated and DTLS-SRTP has derived keys (but prior to verification of the remote fingerprint, enabled by calling start()), incoming media can flow through.

connected

DTLS has completed negotiation of a secure connection (including DTLS-SRTP and remote fingerprint verification). Outgoing media can now flow through.

closed

The DTLS connection has been closed intentionally via a call to stop() or as the result of an error (such as a failure to validate the remote fingerprint). Calling transport.stop() will also result in a transition to the "closed" state.

 

Standards information

See also

RTCDtlsTransport