1、libmediasoupclient版本采用官方(https://mediasoup.org/documentation/v3/libmediasoupclient/installation/)的3.3.0
cmake . -Bbuild \
-DLIBWEBRTC_INCLUDE_PATH:PATH=/home/lianglifeng/webrtc/webrtc-android/src \
-DLIBWEBRTC_BINARY_PATH:PATH=/home/lianglifeng/webrtc/webrtc-android/src/out/m94/debug/arm64/obj
2、abseil-cpp版本一定要采用webrtc对应分支下的abseil-cpp
3、依赖库libwebrtc.a及libwebrtc.jar的版本一定要与libmediasoupclient版本对应(当前libwebrtc的版本为(m94, 对应的分支为:4606))
4、代码地址:
https://github.com/haiyangwu/mediasoup-client-android
5、编译常见问题:
1),“AAPT: error: resource android:attr/lStar not found” 需要设置编译“compileSdk 为31”。参考:https://exerror.com/solved-aapt-error-resource-androidattr-lstar-not-found-in-android/
2),abseil-cpp版本一定要采用webrtc对应分支下的abseil-cpp