Search completed in 1.23 seconds.
9 results for "setconfiguration":
RTCPeerConnection.setConfiguration() - Web APIs
Web › API › RTCPeerConnection › setConfiguration
The RTCPeerConnection.setConfiguration() method sets the current configuration of the RTCPeerConnection based on the values included in the specified RTCConfiguration object. This lets you change the ICE servers used by the connection and which transport policies to use. The most common use case for this method (and even then, probably not a very common use case) is to replace the set of ICE servers to be used. Two potential scenarios in which this might be done: The RTCPeerConnection was instantiated without specifying any ICE servers. If, for example, the RTCPeerConnection() constructor was called with no parameters, you would have to then call setConfiguration() to add ICE servers before ICE negotiation could begin. Renegotiation of the connection is needed, and a different set of ICE servers n...
... constructor was called with no parameters, you would have to then call setConfiguration() to add ICE servers before ICE negotiation could begin. Renegotiation of the connection is needed, and a different set of ICE servers needs to be used for some reason. Perhaps the user has moved into a new region, so using new regional ICE servers is necessary, for example. In this situation, one might call setConfiguration() to switch to new regional ICE servers, then initiate an ICE restart. You cannot change the identity information for a connection once it's already been set. Syntax RTCPeerConnection.setConfiguration(configuration); Parameters configuration An RTCConfiguration object which provides the options to be set. The changes are not additive; instead, the new values completely replace the exis...
...is example, it has already been determined that ICE restart is needed, and that negotiation needs to be done using a different ICE server. var restartConfig = { iceServers: [{ urls: "turn:asia.myturnserver.net", username: "allie@oopcode.com", credential: "topsecretpassword" }] }; myPeerConnection.setConfiguration(restartConfig); myPeerConnection.createOffer({"iceRestart": true}).then(function(offer) { return myPeerConnection.setLocalDescription(offer); }) .then(function() { // send the offer to the other peer using the signaling server }) .catch(reportError); First, a new RTCConfiguration is created, restartConfig, specifying the new ICE server and its credentials. This is then passed into setConfig...
...). ICE negotiation is restarted by calling createOffer(), specifying true as the value of the iceRestart option. From there, we handle the process as usual, by setting the local description to the returned offer and then sending that offer to the other peer. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'setConfiguration()' in that specification. Candidate Recommendation Initial definition. ...
RTCPeerConnection.getConfiguration() - Web APIs
Web › API › RTCPeerConnection › getConfiguration
The configuration includes a list of the ICE servers used by the connection, information about transport policies, and identity information. ...
...The configuration includes a list of the ICE servers used by the connection, information about transport policies, and identity information. ...
... If it's determined that there are no certificates in place, RTCPeerConnection.generateCertificate() is called to create a new certific...
...examining whether or not (a) the configuration has a value for certificates, and (b) whether its length is zero. If it's determined that there are no certificates in place, RTCPeerConnection.generateCertificate() is called to create a new certificate; we provide a fulfillment handler which adds a new array containing the one newly-created certificate to the current configuration and passes it to setConfiguration() to add the certificate to the connection. Specifications Specification Status Comment WebRTC 1.0: Real-time Communication Between BrowsersThe definition of 'getConfiguration()' in that specification. Candidate Recommendation Initial definition. ...
Index - Web APIs
Web › API › Index
hat an RTCPeerConnection uses to authenticate. 3219 RTCConfiguration API, Dictionary, Interface, RTCConfiguration, Reference, WebRTC The RTCConfiguration dictionary is used to provide configuration options for an RTCPeerConnection. It may be passed into the constructor when instantiating a connection, or used with the RTCPeerConnection.getConfiguration() and RTCPeerConnection.setConfiguration() methods, which allow inspecting and changing the configuration while a connection is established. 3220 RTCDTMFSender Audio, DTMF, Interface, Media, PSTN, RTCDTMFSender, Reference, Telephony, Touch-tone, WebRTC, WebRTC API Listen to these events using addEventListener() or by assigning an event listener to the oneventname property of this interface. 3221 RTCDTMFSe...
...oth ends of the connection. 3455 RTCPeerConnection.sctp Experimental, Property, RTCPeerConnection, Reference, SCTP, WebRTC The read-only sctp property on the RTCPeerConnection interface returns an RTCSctpTransport describing the SCTP transport over which SCTP data is being sent and received. If SCTP hasn't been negotiated, this value is null. 3456 RTCPeerConnection.setConfiguration() Configuration, Experimental, Method, RTCPeerConnection, Reference, WebRTC, setConfiguration The RTCPeerConnection.setConfiguration() method sets the current configuration of the RTCPeerConnection based on the values included in the specified RTCConfiguration object. This lets you change the ICE servers used by the connection and which transport policies to use. 3457 RTCPeer...
RTCConfiguration - Web APIs
Web › API › RTCConfiguration
The options include ICE server and transport settings and identity information. ...
...only one certificate is used by a given connection, providing certificates for multiple algorithms may improve the odds of successfully connecting in some circumstances. See Using certificates below for additional information. This configuration option cannot be changed after it is first specified; once the certificates have been set, this property is ignored in future calls to RTCPeerConnection.setConfiguration(). iceCandidatePoolSize Optional An unsigned 16-bit integer value which specifies the size of the prefetched ICE candidate pool. The default value is 0 (meaning no candidate prefetching will occur). You may find in some cases that connections can be established more quickly by allowing the ICE agent to start fetching ICE candidates before you start trying to connect, so that they're already a...
RTCPeerConnection - Web APIs
Web › API › RTCPeerConnection
This lets you change the ICE servers used by the connection and which transport policies to use.setIdentityProvider() The RTCPeerConnection.setIdentityProvider() method sets the Identity Provider (IdP) to the triplet giv...
...This lets you change the ICE servers used by the connection and which transport policies to use.setIdentityProvider() The RTCPeerConnection.setIdentityProvider() method sets the Identity Provider (IdP) to the triplet given in parameter: its name, the protocol us...
RTCConfiguration.certificates - Web APIs
Web › API › RTCConfiguration › certificates
certificates When you wish to provide your own certificates for use by an RTCPeerConnection instead of having the RTCPeerConnection generate them automatically, you do so by calling the static RTCPeerConnection.generateCertificate() function. The certificates property's value cannot be changed once it's first specified. If it's included in the configuration passed into a call to a connection's setConfiguration(), it is ignored. This attribute supports providing multiple certificates because even though a given DTLS connection uses only one certificate, providing multiple certificates allows support for multiple encryption algorithms. The implementation of RTCPeerConnection will choose which certificate to use based on the algorithms it and the remote peer support, as determined during DTLS handshake. ...
RTCConfiguration.iceServers - Web APIs
Web › API › RTCConfiguration › iceServers
t can be useful to provide a second server as a fallback in case the first is offline, listing too many servers can delay the user's connection being established, depending on the network's performance and how many servers get used for negotiation before a connection is established. If the list of servers is changed while a connection is already active by calling the the RTCPeerConnection method setConfiguration(), no immediate effect occurs. However, the new list of servers is used for any future renegotiation, such as while handling an ICE restart. Examples The configuration below opens a new peer connection, specifying two servers for the ICE agent to use for negotiation. The first one, stun:stun.services.mozilla.com, requires authentication, so the username and password are provided. The second ser...
RTCPeerConnection() - Web APIs
Web › API › RTCPeerConnection › RTCPeerConnection
only one certificate is used by a given connection, providing certificates for multiple algorithms may improve the odds of successfully connecting in some circumstances. See Using certificates below for additional information. This configuration option cannot be changed after it is first specified; once the certificates have been set, this property is ignored in future calls to RTCPeerConnection.setConfiguration(). iceCandidatePoolSize Optional An unsigned 16-bit integer value which specifies the size of the prefetched ICE candidate pool. The default value is 0 (meaning no candidate prefetching will occur). You may find in some cases that connections can be established more quickly by allowing the ICE agent to start fetching ICE candidates before you start trying to connect, so that they're already a...
Lifetime of a WebRTC session - Web APIs
Web › API › WebRTC API › Session lifetime
twork connection and the old one is closed. Note: Different browsers support ICE restart under different sets of conditions. Not all browsers will perform ICE restart due to network congestion, for example. If you need to change the configuration of the connection in some way (such as changing to a different set of ICE servers), you can do so before restarting ICE by calling RTCPeerConnection.setConfiguration() with an updated RTCConfiguration dictionary before restarting ICE. To explicitly trigger ICE restart, simply start the renegotiation process by calling RTCPeerConnection.createOffer(), specifying the iceRestart option with a value of true. Then handle the connection process from then on just like you normally would. This generates new values for the ICE username fragment (ufrag) and password, ...