rust-sdks icon indicating copy to clipboard operation
rust-sdks copied to clipboard

Support for using livekit-ffi with shadowed WebRTC library (livekit.org.webrtc.* package)

Open jfjalburquerque opened this issue 1 year ago • 2 comments

Hi team,

I need to use the livekit-ffi library, but for compatibility reasons, I require it to work with a shadowed version of the WebRTC library that uses the package name livekit.org.webrtc.* instead of the standard org.webrtc.*.

Could anyone advise on how to make livekit-ffi compatible with this modified package structure? Any guidance on adapting or configuring livekit-ffi to recognize the livekit.org.webrtc.* namespace would be greatly appreciated.

Thank you in advance for any help or suggestions!

jfjalburquerque avatar Nov 07 '24 16:11 jfjalburquerque

We need the same for our application. Did you figure it out?

I can shade libwebrtc.jar, but updating the jni symbols used by the build process is having issues.

Bumping for the LK team. This is preventing us from using LK.

articulite avatar Jan 21 '25 23:01 articulite

To achieve this, we compiled the WebRTC library after applying the necessary namespace changes directly in its source code. Once we had the WebRTC library built with our custom namespaces, we proceeded to compile livekit-ffi, linking it against our modified WebRTC library. This process allowed us to resolve the namespace conflicts and successfully integrate the libraries as needed.

jfjalburquerque avatar Jan 22 '25 08:01 jfjalburquerque