Planning to add android native client support and android client demo which can communicate with the mediasoup-demo’s server part. Wondering if it is needed or whether someone else is working on it?
It would be extremely good to have an Android app that uses libmediasoupclient and connects to the mediasoup-demo server.
As you can see, we have developed and released libmediasoupclient, but there are not Android/iOS bindings for it. AFAIS there are two options:
- Create libmediasoupclient bindings for Android and iOS. This is, the API exposed by libmediasoupclient wrapped in Java and ObjetiveC or Swift.
- Do not create those bindings and instead make each application directly use the C++ API exposed by libmediasoupclient.
I assume the way to go is 1. So if you go that way, and then create an Android demo app, it would be great.
In the other side, we need some help improving the libmediasoupclient build system. Currently it depends on CMake and it depends on static libraries (libwebrtc, libsdptransform) and produces a static library. Not sure if that would work in Android/iOS environments.
Yep, the way to go is 1. The static library is OK for Android, and the good news is that Android Studio supports using CMake to compile C and C++ code. I’ll work on the Android support and demo app.
There will have two projects
protoo-client-android.Temporarily, is it ok to create this repo under my GitHub account and use
org.mediasoup.droid as the package name?
Just take into account that
protoo is completely unrelated to mediasoup. Of course, you need it to interact with the mediasoup-demo at WebSocket level.
Which exact repo do you mean? I understand there are 3 repos:
mediasoup-demo-android(not sure about the name)
2 repos are just ok, I meant that
mediasoup-demo-android could be put into subdirectory of
mediasoup-client-android. But 3 repos seems better and create all these 3 repos under my Github account.
mediasoup-client-android package name
protoo-client-android package name
mediasoup-demo-android package name
If possible, please do not include the demo app into the mediasoup-client Android SDK
We do not need that
protoo-client for Android is associated with “mediasoup.org” at all. Can you please use any other namespace? You can use
Got it. I’ll start working on it.
- repo link : https://github.com/haiyangwu/mediasoup-client-android
- basic struct : Java API <-> jni Bridge <-> c++ libmediasoupclient
- android develop environment already done
Still, I need several weeks to complete this task.