The RTCIceParameters dictionary's usernameFragment property specifies the username fragment ("ufrag") that uniquely identifies the corresponding ICE session for the duration of the current ICE session.


ufrag = RTCIceParameters.usernameFragment;


A DOMString containing the username fragment that, in tandem with the password, uniquely identify the ICE session being used by the transport. The string may be up to 256 characters long.

See RTCIceCandidate.usernameFragment to learn more about username fragments and their role in a connection.


Specification Status Comment
WebRTC 1.0: Real-time Communication Between Browsers
The definition of 'RTCIceParameters.usernameFragment' in that specification.
Candidate Recommendation Initial specification.

Browser compatibility

No compatibility data found for api.RTCIceParameters.usernameFragment.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.