过时
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
obsolete
RTCIceCandidatePairStats
property
priority
reports the priority of the candidate pair as an integer value.
The higher the value, the more likely the WebRTC layer is to select the candidate pair when the time comes to establish (or re-establish) a connection between the two peers.
pairPriority = rtcIceCandidatePairStats.priority;
An integer value indicating the priority of this pair of candidates as compared to other pairs on the same peer connection. The higher this value, the better the WebRTC layer thinks this pair of candidates is compared to the others, and the more likely a pair is to be selelcted for use.
注意: This property was removed from the specification as its value cannot be guaranteed to be accurately represented in a JavaScript number. You can calculcate its value using the algorithm described in RFC 5245, section 5.7.2 if you need this information and can accept the risk that the result may not be entirely accurate.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Identifiers for WebRTC's Statistics API
The definition of 'RTCIceCandidatePairStats.priority' in that specification. |
候选推荐 | 最初的规范。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
priority
非标
|
Chrome No | Edge No |
Firefox
42
|
IE No | Opera ? | Safari ? | WebView Android No | Chrome Android No |
Firefox Android
42
|
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