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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Duplicate class error when another WebRTC library is used by another plugin

Discussion in 'Unity Render Streaming' started by duckatfake, Aug 25, 2022.

  1. duckatfake

    duckatfake

    Joined:
    Mar 8, 2018
    Posts:
    3
    I tried to use 3D WebView for Android with Gecko Engine and the Unity WebRTC library, but Android compilation halts due to duplicate WebRTC plugins:
    Vuplex developer has come up with a solution which is to remove the WebRTC library from the Gecko (link). This unfortunately disables Gecko's WebRTC functionality and is a no-go.

    Does anyone have any ideas on how to solve this issue so that both plugins retain the WebRTC functionality?
     
    abishekhparivel likes this.
  2. yuliyF

    yuliyF

    Joined:
    Nov 15, 2012
    Posts:
    178
    using namespace :

    Code (CSharp):
    1. namespace MyPart
    2. {
    3. public class MyClass : MonoBehaviour
    4. {
    5. }
    6. }
     
  3. duckatfake

    duckatfake

    Joined:
    Mar 8, 2018
    Posts:
    3
    Thanks for the reply, but unfortunately this solution at face value doesn't work as we're dealing with precompiled libraries. And taking this suggestion a bit further, I'm hoping that the solution is not to rewrite one of the libwebrtc dependencies entirely (e.g. org.webrtc -> org.duck.webrtc) just to avoid the duplicate class error.