Struct RTCConfiguration
Provides options to configure the new connection.
Namespace: Unity.WebRTC
Assembly: Unity.WebRTC.dll
Syntax
[Serializable]
public struct RTCConfiguration
Remarks
RTCConfiguration
struct provides options to configure the new connection.
Examples
RTCConfiguration configuration = peerConnection.GetConfiguration();
if(configuration.urls.length == 0)
{
configuration.urls = new[] {"stun:stun.l.google.com:19302"};
}
peerConnection.SetConfiguration(configuration);
Fields
bundlePolicy
Specifies how to handle negotiation of candidates when the remote peer is not compatible with the SDP BUNDLE standard.
Declaration
public RTCBundlePolicy? bundlePolicy
Field Value
Type | Description |
---|---|
RTCBundlePolicy? |
See Also
iceCandidatePoolSize
Specifies the size of the prefetched ICE candidate pool.
Declaration
public int? iceCandidatePoolSize
Field Value
Type | Description |
---|---|
int? |
See Also
iceServers
List of RTCIceServer objects, each describing one server which may be used by the ICE agent.
Declaration
public RTCIceServer[] iceServers
Field Value
Type | Description |
---|---|
RTCIceServer[] |
See Also
iceTransportPolicy
Represents the current ICE transport policy.
Declaration
public RTCIceTransportPolicy? iceTransportPolicy
Field Value
Type | Description |
---|---|
RTCIceTransportPolicy? |