RTCIceTransport: getRemoteParameters() 方法

可用性有限

此特性不是基線特性,因為它在一些最廣泛使用的瀏覽器中不起作用。

getRemoteParameters() 方法屬於 RTCIceTransport 介面,它返回一個 RTCIceParameters 物件,該物件提供了在 ICE 會話期間唯一標識遠端對等方的資訊。

遠端對等方的引數在 ICE 信令期間接收,並在客戶端呼叫 RTCPeerConnection.setRemoteDescription() 時傳遞給傳輸層。

語法

js
getRemoteParameters()

引數

無。

返回值

一個 RTCIceParameters 物件,指示在 ICE 會話期間唯一標識遠端對等方的 usernameFragmentpassword

如果引數尚未接收到,則返回 null

規範

規範
WebRTC:瀏覽器中的即時通訊
# dom-rtcicetransport-getremoteparameters

瀏覽器相容性