RTCConfiguration

par 6 contributeurs :
Nos bénévoles n'ont pas encore traduit cet article en Français. Aidez-nous à réaliser cette tâche !

The RTCConfiguration is passed into the RTCPeerConnection object to initialize the ice server configuration.

Example

var configuration = { iceServers: [{ url: "stun:stun.services.mozilla.com",
                                     username: "louis@mozilla.com", 
                                     credential: "webrtcdemo" }]
}
var pc = new RTCPeerConnection(configuration);

Properties

Name Type Description
iceServers RTCIceServer[] An array of ice server objects

RTCIceServer Properties

Name Type Description
url DOMString A TURN or STUN url for a server to use.
username DOMString An account username (optional)
credential DOMString The password associated with username, if given (optional)

 

Étiquettes et contributeurs liés au document

Contributeurs à cette page : eharris, teoli, zmi, Jib, Sheppy, wesj
Dernière mise à jour par : eharris,