Method GetConfiguration
GetConfiguration()
Returns an object which indicates the current configuration of the RTCPeerConnection.
Declaration
public RTCConfiguration GetConfiguration()
Returns
Type | Description |
---|---|
RTCConfiguration | An object describing the RTCPeerConnection's current configuration. |
Examples
var configuration = myPeerConnection.GetConfiguration();
if(configuration.urls.length == 0)
{
configuration.urls = new[] {"stun:stun.l.google.com:19302"};
}
myPeerConnection.SetConfiguration(configuration);