docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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
    GetConfiguration()
    SetConfiguration(ref RTCConfiguration)

    iceCandidatePoolSize

    Specifies the size of the prefetched ICE candidate pool.

    Declaration
    public int? iceCandidatePoolSize
    Field Value
    Type Description
    int?
    See Also
    GetConfiguration()
    SetConfiguration(ref RTCConfiguration)

    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
    GetConfiguration()
    SetConfiguration(ref RTCConfiguration)

    iceTransportPolicy

    Represents the current ICE transport policy.

    Declaration
    public RTCIceTransportPolicy? iceTransportPolicy
    Field Value
    Type Description
    RTCIceTransportPolicy?
    See Also
    GetConfiguration()
    SetConfiguration(ref RTCConfiguration)

    See Also

    GetConfiguration()
    SetConfiguration(ref RTCConfiguration)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)