Using mediasoup with Unity — Is it officially supported?

Hello,
I would like to use mediasoup in a Unity project.
Is there any official support or SDK for Unity integration?
Or do I need to build a custom library to use mediasoup with Unity?

Thank you!

Hi, there’s no official Mediasoup SDK for Unity right now, you’ll need to build a custom integration that handles the Mediasoup logic on the backend.

May I ask for clarification — to integrate Mediasoup with Unity, is the recommended approach to manually compile and use libmediasoup-client?
And at the moment, is this effectively the only available method

Yes! Right now the only option is to manually compile the core C++ library (libmediasoupclient) and integrate it into Unity. After that, you’ll need to create a C# wrapper using P/Invoke so Unity’s managed C# code can communicate with the native C++ library

Thank you for your reply!
1 Like