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. |
브라우저 호환성
BCD tables only load in the browser
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.