Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. The 2023.1 beta is now available for testing. To find out what's new, have a look at our 2023.1 feature highlights.
    Dismiss Notice

Could not instantiate RTCPeerConnection

Discussion in 'Unity Render Streaming' started by woo_dong, Nov 9, 2022.

  1. woo_dong

    woo_dong

    Joined:
    Apr 28, 2016
    Posts:
    21
    LOG
    =====
    ArgumentException: Could not instantiate RTCPeerConnection
    Unity.WebRTC.RTCPeerConnection..ctor (Unity.WebRTC.RTCConfiguration& configuration) (at Library/PackageCache/com.unity.webrtc@2.4.0-exp.11/Runtime/Scripts/RTCPeerConnection.cs:484)
    Unity.RenderStreaming.PeerConnection..ctor (System.Boolean polite, Unity.WebRTC.RTCConfiguration config, System.Single resendInterval, System.Func`2[T,TResult] startCoroutine, System.Action`1[T] stopCoroutine) (at Library/PackageCache/com.unity.renderstreaming@3.1.0-exp.4/Runtime/Scripts/PeerConnection.cs:78)
    Unity.RenderStreaming.RenderStreamingInternal.CreatePeerConnection (System.String connectionId, System.Boolean polite) (at Library/PackageCache/com.unity.renderstreaming@3.1.0-exp.4/Runtime/Scripts/RenderStreamingInternal.cs:355)
    Unity.RenderStreaming.RenderStreamingInternal.OnOffer (Unity.RenderStreaming.Signaling.ISignaling signaling, Unity.RenderStreaming.DescData e) (at Library/PackageCache/com.unity.renderstreaming@3.1.0-exp.4/Runtime/Scripts/RenderStreamingInternal.cs:410)
    =====


    3.1.0-exp.3 is work well.

    i just change exp.4 and Video stream sender setting is change.

    but this error occur.

    What did I do wrong?
    (The sample works well, so basically, there seems to be no problem with the library.)
     
  2. kazuki_unity729

    kazuki_unity729

    Unity Technologies

    Joined:
    Aug 2, 2018
    Posts:
    618
    The exception is thrown here.
    https://github.com/Unity-Technologi...untime/Scripts/RTCPeerConnection.cs#L471-L483

    I assume that the argument of the method may be invalid.