aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/rtcpeerconnectioniceevent/index.html
blob: 124472eda4ec99068bc825afbde57bf435042228 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
---
title: RTCPeerConnectionIceEvent
slug: Web/API/RTCPeerConnectionIceEvent
translation_of: Web/API/RTCPeerConnectionIceEvent
---
<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}</p>

<p><strong><code>RTCPeerConnectionIceEvent</code></strong> インタフェースは、通常 {{domxref("RTCPeerConnection")}}のICE候補に関連して発生するイベントを表現します。イベントのタイプは{{event("icecandidate")}}です。</p>

<h2 id="プロパティ">プロパティ</h2>

<p><em>{{domxref("RTCPeerConnectionIceEvent")}} は {{domxref("Event")}} であり, {{domxref("Event")}}のプロパティも実装されています。</em></p>

<dl>
 <dt>{{domxref("RTCPeerConnectionIceEvent.candidate")}} {{readOnlyInline}}</dt>
 <dd>このイベントに関連した候補を含む{{domxref("RTCIceCandidate")}}です。</dd>
</dl>

<h2 id="コンストラクタ">コンストラクタ</h2>

<dl>
 <dt>{{domxref("RTCPeerConnectionIceEvent.RTCPeerConnectionIceEvent()", "RTCPeerConnectionIceEvent()")}}</dt>
 <dd>新しいRTCPeerConnectionIceEventを返します。このコンストラクタは2つの引数を持ち、最初の引数はイベントのタイプを表す{{domxref("DOMString")}}であり、二つ目の引数は、{{domxref("RTCIceCandidate")}}を含むディクショナリです。</dd>
</dl>

<h2 id="メソッド">メソッド</h2>

<p><em>{{domxref("RTCPeerConnectionIceEvent")}}{{domxref("Event")}}であり、このイベントは{{domxref("Event")}}のプロパティも実装します。具体的な <em>{{domxref("</em>RTCPeerConnectionIceEvent<em>")}}</em> メソッドはありません。</em></p>

<h2 id="例"></h2>

<pre class="brush: js">pc.onicecandidate = function( ev ) {
                      alert("The ICE candidate (transport address: '" +
                            ev.candidate.candidate +
                            "') has been added to this connection.");
                   }
</pre>

<h2 id="仕様">仕様</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{ SpecName('WebRTC 1.0', '#idl-def-RTCPeerConnectionIceEvent', 'RTCPeerConnectionIceEvent') }}</td>
   <td>{{Spec2('WebRTC 1.0')}}</td>
   <td>Initial definition.</td>
  </tr>
 </tbody>
</table>

<h2 id="ブラウザ互換性">ブラウザ互換性</h2>

<p>{{ CompatibilityTable() }}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatVersionUnknown }}</td>
   <td>{{ CompatNo() }}</td>
   <td>{{ CompatVersionUnknown() }}</td>
   <td>{{ CompatUnknown() }}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Chrome for Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{ CompatUnknown() }}</td>
   <td>{{ CompatUnknown() }}</td>
   <td>{{ CompatUnknown() }}</td>
   <td>{{ CompatNo() }}</td>
   <td>{{ CompatUnknown() }}</td>
   <td>{{ CompatUnknown() }}</td>
  </tr>
 </tbody>
</table>
</div>

<h2 id="その他の記事">その他の記事</h2>

<ul>
 <li><a href="/en-US/docs/Web/Guide/API/WebRTC" title="/en-US/docs/CSS/Using_CSS_animations">WebRTC</a></li>
 <li>このイベントの通常ターゲット: {{domxref("RTCPeerConnection")}}.</li>
</ul>