state
property in an
RTCIceCandidatePairStats
object indicates the state of the check list of which the candidate pair is a member.
state = rtcIceCandidatePairStats.state;
A
DOMString
whose value is one of those found in the
RTCStatsIceCandidatePairState
enumerated type.
During ICE negotiation, the ICE layer builds up a
check list
, which is a list of potential pairings of ICE candidates. Each pair has a state, whose value is represented by
RTCStatsIceCandidatePairState
.
When a candidate pair is added to the check list, it begins in the
frozen
state. As soon as there are no checks ongoing which block the pair from being analyzed, it is unfrozen and moves into the
waiting
state. This may happen immediately upon being added to the check list.
Each time a candidate pair is done being checked, the next-highest priority candidate pair remaining on the check list moves from the
waiting
state to the
in-progress
state, and its check begins. If the check fails for any reason, the pair moves into its final state,
failed
. If the check succeeds, the pair ends up in the
succeeded
状态。
The ICE check list state for any given pair of ICE candidates can be found in the corresponding the
state
特性。
| 规范 | 状态 | 注释 |
|---|---|---|
|
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.state' in that specification. |
候选推荐 | 最初的规范。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
state
|
Chrome No | Edge No | Firefox 29 | IE No | Opera ? | Safari ? | WebView Android No | Chrome Android No | Firefox Android 29 | Opera Android ? | Safari iOS ? | Samsung Internet Android No |
完整支持
不支持
兼容性未知
RTCIceCandidatePairStats
availableOutgoingBitrate
bytesReceived
circuitBreakerTriggerCount
consentExpiredTimestamp
firstRequestTimestamp
lastPacketReceivedTimestamp
lastPacketSentTimestamp
lastRequestTimestamp
lastResponseTimestamp
localCandidateId
nominated
packetsReceived
packetsSent
priority
readable
remoteCandidateId
requestsReceived
requestsSent
responsesReceived
responsesSent
retransmissionsReceived
state
totalRoundTripTime
transportId
writable
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent