WebRTC API's
RTCIceCandidateType
enumerated type provides a set of
DOMString
values representing the types of
ICE
candidate that can arrive.
These strings are taken directly from the
candidate
a-line in
SDP
.
These candidate types are listed in order of priority; the higher in the list they are, the more efficient they are.
host
RTCIceCandidate.ip
property is in fact the true address of the remote peer.
srflx
ip
indicates an intermediary address assigned by the
STUN
server to represent the candidate's peer anonymously.
prflx
ip
is an intermediary address assigned by the STUN server to represent the candidate's peer anonymously.
relay
RTCIceCandidateType
enumeration is used by the
type
property of
RTCIceCandidate
objects, as well as when reporting statistics on candidates using
RTCIceCandidateStats.candidateType
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCIceCandidateType' in that specification. |
候选推荐 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
RTCIceCandidateType
|
Chrome
不支持
No
注意事项
|
Edge
不支持
No
注意事项
|
Firefox
不支持
No
注意事项
|
IE 不支持 No | Opera ? | Safari ? |
WebView Android
不支持
No
注意事项
|
Chrome Android
不支持
No
注意事项
|
Firefox Android
不支持
No
注意事项
|
Opera Android ? | Safari iOS ? |
Samsung Internet Android
不支持
No
注意事项
|
不支持
兼容性未知
见实现注意事项。
RTCIceCandidateType
MediaDevices.getUserMedia()
Navigator.mediaDevices
RTCCertificate
RTCDTMFSender
RTCDTMFToneChangeEvent
RTCDataChannel
RTCDataChannelEvent
RTCDtlsTransport
RTCErrorEvent
RTCIceCandidate
RTCIceTransport
RTCPeerConnection
RTCPeerConnectionIceErrorEvent
RTCPeerConnectionIceEvent
RTCRtpReceiver
RTCRtpSender
RTCRtpTransceiver
RTCSctpTransport
RTCSessionDescription
RTCStatsEvent
RTCStatsReport
RTCTrackEvent