Skip to content

Class duplication when using WebRTC for Unity package #192

@mpqst

Description

@mpqst

Summary

My project uses two packages that use WebRTC: LiveKit SDK and WebRTC for Unity. When trying to build for Android (Meta Quest 3), a graddle build failure is caused due to multiple duplicate classes present in "libwebrtc" files.

Image

How to reproduce

  1. Create a Unity project (tested version is 6000.3.8 LTS but most likely has the same issue in other versions)
  2. Switch build platform to Android
  3. Import LiveKit SDK
  4. Import WebRTC for Unity
  5. Attempt to build

Goal

My goal in this project is to be able to join rooms and participate in video calls using LiveKit, but also be able to receive WebRTC streams alone without relying on LiveKit.

Any suggestions on how to fix this issue or recommendations on alternatives to achieve my goal are welcome! 😊

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions