Draft
This page is not complete.
This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The RTCIceServer
dictionary's credential
property is a string providing the credential to use when connecting to the described server. This is typically a password, key, or other secret.
This value is used when the RTCIceServer
describes a TURN server.
var iceServer = { ... credential = credential, ... }; var credential = iceServer.credential; iceServer.credential = newCredential;
This example creates a new RTCPeerConnection
which uses a TURN server at turnserver.example.org
to negotiate connections. Logging into the TURN server uses the username "webrtc" and the creative password "turnpassword".
myPeerConnection = new RTCPeerConnection({ iceServers: [ { urls: "turn:turnserver.example.org", // A TURN server username: "webrtc", credential: "turnpassword" } ] });
Specification | Status | Comment |
---|---|---|
WebRTC 1.0: Real-time Communication Between Browsers The definition of 'RTCIceServer.credential' in that specification. | Working Draft | Initial specification. |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 22 (22) | ? | ? | ? |
Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|
Basic support | ? | (Yes) | 22.0 (22) | ? | ? | ? |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCIceServer/credential