RTCIceTransport 方法 getLocalParameters() 返回 RTCIceParameters object which provides information uniquely identifying the local peer for the duration of the ICE session.

The local peer's parameters are obtained during ICE signaling and delivered to the transport when the client calls RTCPeerConnection.setLocalDescription() .

句法

parameters = RTCIceTransport.getLocalParameters();
					

参数

None.

返回值

RTCIceParameters object indicating the usernameFragment and password which uniquely identify the local peer for the duration of the ICE session.

返回 null if the parameters have not yet been received.

规范

规范 状态 注释
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCIceTransport.getLocalParameters' in that specification.
候选推荐 最初的规范。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
getLocalParameters Chrome No Edge No Firefox No IE No Opera No Safari No WebView Android No Chrome Android No Firefox Android No Opera Android No Safari iOS No Samsung Internet Android No

图例

不支持

不支持

元数据

  • 最后修改: