W3cubDocs

/Web APIs

RTCIceTransport.getLocalParameters()

The RTCIceTransport method getLocalParameters() returns an 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().

Syntax

parameters = RTCIceTransport.getLocalParameters();

Parameters

None.

Return value

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

Returns null if the parameters have not yet been received.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
getLocalParameters
75
79
No
No
62
No
75
75
No
54
No
11.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceTransport/getLocalParameters