Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions Runtime/Scripts/WebRTC.cs
Original file line number Diff line number Diff line change
Expand Up @@ -531,30 +531,43 @@ public enum RTCIceTransportPolicy : int
}

/// <summary>
///
/// Provides options to configure the new connection.
/// </summary>
/// <remarks>
/// `RTCConfiguration` struct provides options to configure the new connection.
/// </remarks>
/// <example>
/// <code lang="cs"><![CDATA[
/// RTCConfiguration configuration = peerConnection.GetConfiguration();
/// if(configuration.urls.length == 0)
/// {
/// configuration.urls = new[] {"stun:stun.l.google.com:19302"};
/// }
/// peerConnection.SetConfiguration(configuration);
/// ]]></code>
/// </example>
/// <seealso cref="RTCPeerConnection.GetConfiguration()"/>
/// <seealso cref="RTCPeerConnection.SetConfiguration(ref RTCConfiguration)"/>
[Serializable]
public struct RTCConfiguration
{
/// <summary>
///
/// List of RTCIceServer objects, each describing one server which may be used by the ICE agent.
/// </summary>
public RTCIceServer[] iceServers;

/// <summary>
///
/// Represents the current ICE transport policy.
/// </summary>
public RTCIceTransportPolicy? iceTransportPolicy;

/// <summary>
///
/// Specifies how to handle negotiation of candidates when the remote peer is not compatible with the SDP BUNDLE standard.
/// </summary>
public RTCBundlePolicy? bundlePolicy;

/// <summary>
///
/// Specifies the size of the prefetched ICE candidate pool.
/// </summary>
public int? iceCandidatePoolSize;

Expand Down