This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
The RTCIceCandidate
interface of the the WebRTC API represents a candidate internet connectivity establishment (ICE) server for establishing an RTCPeerConnection
.
RTCIceCandidate()
RTCIceCandidate
object.RTCIceCandidate.candidate
Read only
candidate-attribute
as defined in RTC 5245.RTCIceCandidate.foundation
Read only
RTCIceTransport
objects.RTCIceCandidate.ip
Read only
RTCIceCandidate.port
Read only
RTCIceCandidate.priority
Read only
RTCIceCandidate.protocol
Read only
RTCIceCandidate.relatedAddress
Read only
relatedAddress
is the IP address of the candidate that it is derived from. For host candidates, the relatedAddress
is null
.RTCIceCandidate.relatedPort
Read only
relatedPort
is the port of the candidate that it is derived from. For host candidates, the relatedPort
is null
.RTCIceCandidate.sdpMid
Read only
null
, this contains the identifier of the "media stream identification" (as defined in RFC 5888) for the media component this candidate is associated with.RTCIceCandidate.sdpMLineIndex
Read only
null
, this indicates the index (starting at zero) of the media description (as defined in RFC 4566) in the SDP this candidate is associated with.RTCIceCandidate.tcpType
Read only
protocol
is tcp
, tcpType
represents the type of TCP candidate. Otherwise, tcpType
is null
.RTCIceCandidate.type
Read only
host
, srflx
, prflx
, or relay
.Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browser | Working Draft | Initial definition. |
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|---|
Basic support | (Yes) | (Yes) |
Feature | Android | Android Webview | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|---|
Basic support | ? | (Yes) | (Yes) | (Yes) |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceCandidate