これは実験段階の機能です。
この機能は複数のブラウザで開発中の状態にあります。各ブラウザで用いるために、適切なベンダー接頭辞が必要な場合があります。互換性テーブルをチェックしてください。また、実験段階の機能の構文と挙動は、仕様変更に伴い各ブラウザの将来のバージョンで変更になる可能性があることに注意してください。
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 Browser The definition of 'RTCPeerConnectionIceEvent' in that specification. |
草案 | Initial definition. |
ブラウザ互換性
| 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.

