RTCPeerConnectionIceEvent.candidate

RTCPeerConnectionIceEvent 인터페이스의 candidate 속성은 읽기 전용입니다. 이 속성은 RTCIceCandidate와 관련된 이벤트를 반환합니다.   

Syntax

 var candidate = event.candidate;

ICE candidate를 나타내는 RTCIceCandidate 객체. 해당 네고시에이션 세션에 대한 candidate가 더 이상 존재하지 않으면, null을 반환합니다. 

예시

pc.onicecandidate = function( ev ) {
  alert("The ICE candidate (transport address: '" + 
    ev.candidate.candidate + 
    "') has been added to this connection.");
}

명세

명세 상태 코멘트
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCPeerConnectionIceEvent.candidate' in that specification.
Candidate Recommendation Initial specification.

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
candidate
Experimental
Chrome Full support 56Edge Full support 15Firefox Full support YesIE No support NoOpera Full support YesSafari Full support YesWebView Android Full support 56Chrome Android Full support 56Firefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support 6.0

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

참조