Movatterモバイル変換


[0]ホーム

URL:


MDN Web Docs

RTCPeerConnectionIceEvent

BaselineWidely available *

TheRTCPeerConnectionIceEvent interface represents events that occur in relation toICE candidates with the target, usually anRTCPeerConnection.

Only one event is of this type:icecandidate.

Event RTCPeerConnectionIceEvent

Instance properties

ARTCPeerConnectionIceEvent being anEvent, this event also implements these properties.

RTCPeerConnectionIceEvent.candidateRead only

Contains theRTCIceCandidate containing the candidate associated with the event, ornull if this event indicates that there are no further candidates to come.

Constructors

RTCPeerConnectionIceEvent()

Returns a newRTCPeerConnectionIceEvent. It takes two parameters, the first being a string representing the type of the event; the second a dictionary containing theRTCIceCandidate it refers to.

Instance methods

ARTCPeerConnectionIceEvent being anEvent, this event also implements these properties. There is no specificRTCDataChannelEvent method.

Examples

js
pc.onicecandidate = (ev) => {  console.log(    `The ICE candidate ('${ev.candidate.candidate}') added to connection.`,  );};

Specifications

Specification
WebRTC: Real-Time Communication in Browsers
# rtcpeerconnectioniceevent

Browser compatibility

See also

Help improve MDN

Learn how to contribute.

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp