RTCPeerConnectionIceEvent
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
RTCPeerConnectionIceEvent
インタフェースは、通常 RTCPeerConnection
のICE候補に関連して発生するイベントを表現します。イベントのタイプはicecandidate
です。
プロパティ
RTCPeerConnectionIceEvent
は Event
であり, Event
のプロパティも実装されています。
RTCPeerConnectionIceEvent.candidate
(en-US) 読取専用- このイベントに関連した候補を含む
RTCIceCandidate
(en-US)です。
コンストラクタ
RTCPeerConnectionIceEvent()
(en-US)- 新しいRTCPeerConnectionIceEventを返します。このコンストラクタは2つの引数を持ち、最初の引数はイベントのタイプを表す
DOMString
であり、二つ目の引数は、RTCIceCandidate
(en-US)を含むディクショナリです。
メソッド
RTCPeerConnectionIceEvent
は Event
であり、このイベントはEvent
のプロパティも実装します。具体的な RTCPeerConnectionIceEvent
メソッドはありません。
例
pc.onicecandidate = function( ev ) {
alert("The ICE candidate (transport address: '" +
ev.candidate.candidate +
"') has been added to this connection.");
}
仕様
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers RTCPeerConnectionIceEvent の定義 |
勧告候補 | Initial definition. |
ブラウザ互換性
BCD tables only load in the browser
その他の記事
- WebRTC (en-US)
- このイベントの通常ターゲット:
RTCPeerConnection
.