Baseline Widely available *
The RTCPeerConnectionIceEvent
interface represents events that occur in relation to ICE candidates with the target, usually an RTCPeerConnection
.
Only one event is of this type: icecandidate
.
A RTCPeerConnectionIceEvent
being an Event
, this event also implements these properties.
RTCPeerConnectionIceEvent.candidate
Read only
Contains the RTCIceCandidate
containing the candidate associated with the event, or null
if this event indicates that there are no further candidates to come.
RTCPeerConnectionIceEvent()
Returns a new RTCPeerConnectionIceEvent
. It takes two parameters, the first being a string representing the type of the event; the second a dictionary containing the RTCIceCandidate
it refers to.
A RTCPeerConnectionIceEvent
being an Event
, this event also implements these properties. There is no specific RTCDataChannelEvent
method.
pc.onicecandidate = (ev) => {
console.log(
`The ICE candidate ('${ev.candidate.candidate}') added to connection.`,
);
};
Specifications Browser compatibility See also
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3