aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-06-03 01:40:04 +0000
committerMDN <actions@users.noreply.github.com>2021-06-03 01:40:04 +0000
commitd5f6dd6b7f6653facfb468516ef657a2d4d5180c (patch)
treee08e8f6f9d5394cd3edf4c4b54e961f4e4cc1e99 /files/zh-cn/web
parentd671972ba9c48fa9367d6264b5d99151fc07235a (diff)
downloadtranslated-content-d5f6dd6b7f6653facfb468516ef657a2d4d5180c.tar.gz
translated-content-d5f6dd6b7f6653facfb468516ef657a2d4d5180c.tar.bz2
translated-content-d5f6dd6b7f6653facfb468516ef657a2d4d5180c.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/web')
-rw-r--r--files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html57
1 files changed, 0 insertions, 57 deletions
diff --git a/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html b/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html
deleted file mode 100644
index 96c8496248..0000000000
--- a/files/zh-cn/web/api/rtcpeerconnection/getdefaulticeservers/index.html
+++ /dev/null
@@ -1,57 +0,0 @@
----
-title: RTCPeerConnection.getDefaultIceServers()
-slug: Web/API/RTCPeerConnection/getDefaultIceServers
-translation_of: Web/API/RTCPeerConnection/getDefaultIceServers
----
-<p>{{APIRef("WebRTC")}}{{SeeCompatTable}}</p>
-
-<p>{{domxref("RTCPeerConnection")}} 接口的方法 <code><strong>getDefaultIceServers()</strong></code> 返回一个基于  {{domxref("RTCIceServer")}} 字典的对象数组。如果在 {{domxref("RTCPeerConnection")}} 的 {{domxref("RTCConfiguration")}} 中没有设置,该数组指向浏览器缺省使用的ICE servers,前提是浏览器确实存在缺省的ICE servers。然而,浏览器完全不必提供任何的缺省ICE Servers。</p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="syntaxbox"> var <em>defaultIceServers</em> = <em>RTCPeerConnection</em>.getDefaultIceServers();</pre>
-
-<h3 id="返回值">返回值</h3>
-
-<p>一个 ICE servers 的数组,以基于 {{domxref("RTCIceServer")}} 的对象组成,当没有在 {{domxref("RTCPeerConnection")}} 的设置中进行设置时,浏览器将使用它们。如果浏览器没有提供缺省值,将返回一个空数组,该属性的值永远不是 <code>null</code>。</p>
-
-<h2 id="例子">例子</h2>
-
-<pre class="brush: js">var pc = new RTCPeerConnection();
-var iceServers = pc.getDefaultIceServers();
-
-if (iceServers.length === 0) {
- // Deal with the lack of default ICE servers, possibly by using our own defaults
-}</pre>
-
-<h2 id="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><a href="https://w3c.github.io/webrtc-extensions/#dom-rtcpeerconnection-getdefaulticeservers">WebRTC Extensions</a></td>
- <td></td>
- <td></td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-
-
-<p>{{Compat("api.RTCPeerConnection.getDefaultIceServers")}}</p>
-
-<h2 id="See_also">See also</h2>
-
-<ul>
- <li><a href="/en-US/docs/Web/Guide/API/WebRTC">WebRTC</a></li>
- <li>{{domxref("RTCConfiguration")}}</li>
-</ul>