RTCPeerConnectionIceEvent
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.
Properties
A RTCPeerConnectionIceEvent being an Event, this event also implements these properties.
RTCPeerConnectionIceEvent.candidateRead only-
Contains the
RTCIceCandidatecontaining the candidate associated with the event, ornullif this event indicates that there are no further candidates to come.
Constructors
RTCPeerConnectionIceEvent()-
Returns a new
RTCPeerConnectionIceEvent. It takes two parameters, the first being aDOMStringrepresenting the type of the event; the second a dictionary containing theRTCIceCandidateit refers to.
Methods
A RTCPeerConnectionIceEvent being an Event, this event also implements these properties. There is no specific RTCDataChannelEvent method.
Examples
pc.onicecandidate = function (ev) {
alert(
"The ICE candidate (transport address: '" +
ev.candidate.candidate +
"') has been added to this connection."
);
};
Specifications
| Specification |
|---|
| WebRTC 1.0: Real-Time Communication Between Browsers # rtcpeerconnectioniceevent |
Browser compatibility
BCD tables only load in the browser
See also
- WebRTC
- Its usual target:
RTCPeerConnection.