RTCPeerConnectionIceEvent
インタフェースは、通常 RTCPeerConnection
のICE候補に関連して発生するイベントを表現します。イベントのタイプはicecandidate
です。
プロパティ
RTCPeerConnectionIceEvent
は Event
であり, Event
のプロパティも実装されています。
RTCPeerConnectionIceEvent.candidate
読取専用- このイベントに関連した候補を含む
RTCIceCandidate
です。
コンストラクタ
RTCPeerConnectionIceEvent()
- 新しいRTCPeerConnectionIceEventを返します。このコンストラクタは2つの引数を持ち、最初の引数はイベントのタイプを表す
DOMString
であり、二つ目の引数は、RTCIceCandidate
を含むディクショナリです。
メソッド
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. |
ブラウザ互換性
現在、互換性データを可読形式の JSON フォーマットに置き換えているところです。
この互換性一覧は古い形式を使っており、これに含まれるデータの置き換えが済んでいません。
手助けしていただける場合は、こちらから!
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (有) | (有) | 未サポート | (有) | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | ? | ? | 未サポート | ? | ? |
その他の記事
- WebRTC
- このイベントの通常ターゲット:
RTCPeerConnection
.