diff options
Diffstat (limited to 'files/zh-cn/web/api/rtcpeerconnection')
9 files changed, 9 insertions, 531 deletions
diff --git a/files/zh-cn/web/api/rtcpeerconnection/addicecandidate/index.html b/files/zh-cn/web/api/rtcpeerconnection/addicecandidate/index.html index c648d7aac4..5cc99c8716 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/addicecandidate/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/addicecandidate/index.html @@ -96,101 +96,7 @@ pc.addIceCandidate(candidate).then(_=>{ <h2 id="Browser_compatibility">Browser compatibility</h2> -<p>{{ CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{ CompatVersionUnknown}}[1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatGeckoDesktop(22) }} [2]</td> - <td>{{ CompatNo}}</td> - <td>{{ CompatVersionUnknown}}</td> - <td>{{ CompatUnknown}}</td> - </tr> - <tr> - <td>Promise-based version</td> - <td>{{CompatChrome(50)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{ CompatGeckoDesktop(37)}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - </tr> - <tr> - <td>{{domxref("RTCIceCandidateInit")}} as input</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoDesktop(53)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</th> - <th>Chrome for Android</th> - <th>Edge</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>{{ CompatVersionUnknown}}[1]</td> - <td>{{ CompatVersionUnknown}}[1]</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{ CompatGeckoMobile(22)}}</td> - <td>{{ CompatNo}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - </tr> - <tr> - <td>Promise-based version</td> - <td>{{CompatChrome(50)}}</td> - <td>{{CompatChrome(50)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(37)}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - </tr> - <tr> - <td>{{domxref("RTCIceCandidateInit")}} as input</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatGeckoMobile(53)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Though this method is not prefixed, the interface it belongs to was until Chrome 56.</p> - -<p>[2] Though this method is not prefixed, the interface it belongs to was until Firefox 44.</p> +{{Compat("api.RTCPeerConnection.addIceCandidate")}} <h2 id="See_also">See also</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/icecandidate_event/index.html b/files/zh-cn/web/api/rtcpeerconnection/icecandidate_event/index.html index 7e830adf3e..65e2a48084 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/icecandidate_event/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/icecandidate_event/index.html @@ -75,59 +75,7 @@ original_slug: Web/Events/icecandidate <h2 id="兼容性">兼容性</h2> -<p>{{ CompatibilityTable() }}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>特性</th> - <th>Chrome</th> - <th>Edge</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>{{ 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>特性</th> - <th>Android</th> - <th>Chrome for Android</th> - <th>Edge</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>{{CompatVersionUnknown}}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatNo() }}</td> - <td>{{ CompatUnknown() }}</td> - <td>{{ CompatUnknown() }}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.RTCPeerConnection.icecandidate_event")}} <h2 id="参阅">参阅</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html b/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html index ce202a7d8f..cbc94bd3a1 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html @@ -51,57 +51,7 @@ var state = pc.iceConnectionState;</pre> <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() }} [1]</td> - <td>{{ CompatVersionUnknown }} [1]</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> - -<p>[1] Though this property is not prefixed, the interface it belongs to is.</p> +{{Compat("api.RTCPeerConnection.iceConnectionState")}} <h2 id="参考文档">参考文档</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/onaddstream/index.html b/files/zh-cn/web/api/rtcpeerconnection/onaddstream/index.html index 1c5a04d575..a61e2f28c6 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/onaddstream/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/onaddstream/index.html @@ -44,57 +44,7 @@ translation_of: Web/API/RTCPeerConnection/onaddstream <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() }} [1]</td> - <td>{{ CompatVersionUnknown }} [1]</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> - -<p>[1] Though this property is not prefixed, the interface it belongs to is.</p> +{{Compat("api.RTCPeerConnection.onaddstream")}} <h2 id="扩展阅读">扩展阅读</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html index d6d675b53a..73b9b136ed 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ondatachannel/index.html @@ -49,59 +49,7 @@ translation_of: Web/API/RTCPeerConnection/ondatachannel <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}} [1]</td> - <td>{{ CompatGeckoDesktop(18) }} [2]</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>{{ CompatGeckoMobile(22) }} [2]</td> - <td>{{ CompatNo}}</td> - <td>{{ CompatUnknown}}</td> - <td>{{ CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] Though this property is not prefixed, the interface it belongs to is.</p> - -<p>[2] This property's name isn't prefixed, but the interface it's in, {{domxref("RTCPeerConnection")}}, was prefixed as <code>MozRTCPeerConnection</code> until Firefox 44.</p> +{{Compat("api.RTCPeerConnection.ondatachannel")}} <h2 id="相关阅读">相关阅读</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html index db43ee6ed5..84c2b49cfe 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/ontrack/index.html @@ -47,57 +47,7 @@ translation_of: Web/API/RTCPeerConnection/ontrack <h2 id="各浏览器兼容性">各浏览器兼容性</h2> -<p>{{CompatibilityTable}}</p> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>特性</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>{{CompatNo}}</td> - <td>{{CompatGeckoDesktop(46)}}<sup>[1]</sup></td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>Feature</th> - <th>Android Webview</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>{{CompatNo}}</td> - <td>{{CompatNo}}</td> - <td>{{CompatGeckoDesktop(46)}}<sup>[1]</sup></td> - <td>{{CompatNo}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<p>[1] 在Firefox 45中引入了<code>onaddtrack</code>;在Firefox 46中重命名为<code>ontrack</code></p> +{{Compat("api.RTCPeerConnection.ontrack")}} <h2 id="参见">参见</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/removestream/index.html b/files/zh-cn/web/api/rtcpeerconnection/removestream/index.html index d8934b29c9..1f842f3a83 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/removestream/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/removestream/index.html @@ -59,57 +59,7 @@ document.getElementById("closeButton").addEventListener("click", function(event) <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() }} [1]</td> - <td>{{ CompatVersionUnknown }} [1]</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> - -<p>[1] Though this property is not prefixed, the interface it belongs to is.</p> +{{Compat("api.RTCPeerConnection.removeStream")}} <h2 id="扩展阅读">扩展阅读</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/rtcpeerconnection/index.html b/files/zh-cn/web/api/rtcpeerconnection/rtcpeerconnection/index.html index 70ebad3dd1..8155c1e43b 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/rtcpeerconnection/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/rtcpeerconnection/index.html @@ -45,81 +45,7 @@ translation_of: Web/API/RTCPeerConnection/RTCPeerConnection <h2 id="浏览器支持性">浏览器支持性</h2> -<div>{{CompatibilityTable}}</div> - -<div id="compat-desktop"> -<table class="compat-table"> - <tbody> - <tr> - <th>特性</th> - <th>Chrome</th> - <th>Edge</th> - <th>Firefox (Gecko)</th> - <th>Internet Explorer</th> - <th>Opera</th> - <th>Safari (WebKit)</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoDesktop(22)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>iceCandidatePoolSize</td> - <td>{{CompatChrome(59)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> - -<div id="compat-mobile"> -<table class="compat-table"> - <tbody> - <tr> - <th>特性</th> - <th>Android Webview</th> - <th>Chrome for Android</th> - <th>Edge</th> - <th>Firefox Mobile (Gecko)</th> - <th>Firefox OS</th> - <th>IE Mobile</th> - <th>Opera Mobile</th> - <th>Safari Mobile</th> - </tr> - <tr> - <td>Basic support</td> - <td>{{CompatNo}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatVersionUnknown}}</td> - <td>{{CompatGeckoMobile(24)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - <tr> - <td>iceCandiatePoolSize</td> - <td>{{CompatNo}}</td> - <td>{{CompatChrome(59)}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - <td>{{CompatUnknown}}</td> - </tr> - </tbody> -</table> -</div> +{{Compat("api.RTCPeerConnection.RTCPeerConnection")}} <h2 id="引申阅读">引申阅读</h2> diff --git a/files/zh-cn/web/api/rtcpeerconnection/setremotedescription/index.html b/files/zh-cn/web/api/rtcpeerconnection/setremotedescription/index.html index 9e8db040bc..6717c46b3d 100644 --- a/files/zh-cn/web/api/rtcpeerconnection/setremotedescription/index.html +++ b/files/zh-cn/web/api/rtcpeerconnection/setremotedescription/index.html @@ -68,57 +68,7 @@ pc.setRemoteDescription( new RTCSessionDescription( offer ), function() { <h2 id="Browser_compatibility">Browser compatibility</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() }} [1]</td> - <td>{{ CompatVersionUnknown }} [1]</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> - -<p>[1] Though this property is not prefixed, the interface it belongs to is.</p> +{{Compat("api.RTCPeerConnection.setRemoteDescription")}} <h2 id="See_also">See also</h2> |