From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../iceconnectionstate/index.html | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html (limited to 'files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html') diff --git a/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html b/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html new file mode 100644 index 0000000000..ce202a7d8f --- /dev/null +++ b/files/zh-cn/web/api/rtcpeerconnection/iceconnectionstate/index.html @@ -0,0 +1,110 @@ +--- +title: RTCPeerConnection.iceConnectionState +slug: Web/API/RTCPeerConnection/iceConnectionState +translation_of: Web/API/RTCPeerConnection/iceConnectionState +--- +

{{APIRef("WebRTC")}}{{SeeCompatTable}}

+ +

RTCPeerConnection.iceConnectionState 是一个只读属性,用于描述连接的ICE连接状态,返回值为枚举类型。

+ +

语法

+ +
 var state = peerConnection.iceConnectionState;
+ +

返回值

+ +

RTCIceConnectionState的返回值为下面列举中的一种:

+ + + +

例子

+ +
var pc = new RTCPeerConnection();
+var state = pc.iceConnectionState;
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{ SpecName('WebRTC 1.0', '#widl-RTCPeerConnection-iceConnectionState', 'RTCPeerConnection.iceConnectionState') }}{{ Spec2('WebRTC 1.0') }}Initial specification.
+ +

浏览器兼容

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{ CompatVersionUnknown() }} [1]{{ CompatVersionUnknown }} [1]{{ CompatNo() }}{{ CompatVersionUnknown() }}{{ CompatUnknown() }}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidChrome for AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatUnknown() }}{{ CompatNo() }}{{ CompatUnknown() }}{{ CompatUnknown() }}
+
+ +

[1] Though this property is not prefixed, the interface it belongs to is.

+ +

参考文档

+ + -- cgit v1.2.3-54-g00ecf