Draft This page is not complete.
I'm experimenting with structure for pages documenting members of dictionaries. Please contact sheppy with any feedback.
This is an experimental technologyCheck the Browser compatibility table carefully before using this in production.
The RTCIceServer
dictionary's username
property is a string which specifies the username to use when authenticating with the ICE server being described.
This value is used when the RTCIceServer
describes a TURN server.
Syntax
var iceServer = { ... username = username, ... }; var username = iceServer.username; iceServer.username = newUsername;
Example
This example creates a new RTCPeerConnection
which will use a TURN server at turnserver.example.org
to negotiate connections. Logging into the TURN server will use the username "webrtc" and the creative password "turnpassword".
myPeerConnection = new RTCPeerConnection({
iceServers: [
{
urls: "turn:turnserver.example.org", // A TURN server
username: "webrtc",
credential: "turnpassword"
}
]
});
Specifications
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'RTCIceServer.username' in that specification. | Candidate Recommendation | Initial specification. |
Browser compatibility
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.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
username
|
Chrome
Full support Yes |
Edge
Full support ≤79 |
Firefox
Full support 23 |
IE
No support No |
Opera
? |
Safari
? |
WebView Android
No support No |
Chrome Android
Full support Yes |
Firefox Android
Full support 24 |
Opera Android
? |
Safari iOS
? |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
See also
RTCIceServer.username by Mozilla Contributors is licensed under CC-BY-SA 2.5.