mediasoup client side C# binding based on libmediasoupclient
-
build
libwebrtc
Since the
libmediasoupclient
deps onlibwebrtc
, you need to buildlibwebrtc
before configuring cmake.- Make sure you have all submodules inited. Folder
deps\webrtc-builds
shouldn't be empty. - Follow the README.md to build the webrtc. NOTICE: libmediasoupclient deps on libwebrtc version m97. So you need to execute
./build.sh -c x64 -b branch-heads/4606
which corresponding to m97
If everything OK, you'll see a beautiful
deps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64
containing webrtc headers and libs.-
ninja: line 8: exec: python3: not found
Create a file named
python3
atdeps\webrtc-builds\depot_tools
and enter following script in it.#!/usr/bin/env bash DEPOT_TOOLS=$(dirname "$0")/.. PYTHON3_BIN_DIR="$DEPOT_TOOLS/depot_tools/bootstrap-2@3_8_10_chromium_26_bin/python3/bin" PATH="$PYTHON3_BIN_DIR":"$PYTHON3_BIN_DIR/Scripts":"$PATH" "$PYTHON3_BIN_DIR/python3" "$@"
NOTICE: After executing
./build.sh
it will reset thedeps\webrtc-builds\depot_tools
folder, so you must create this file AFTER reset and BEFORE compile.
- Make sure you have all submodules inited. Folder
-
build
libmediasoupclient
- Back to the project root directory and configure cmake. set
LIBWEBRTC_BINARY_PATH
to.\deps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64\lib\x64\Release
and setLIBWEBRTC_INCLUDE_PATH
to.\deps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64\include
for a win-x64 release build. - Open the generated
mediasoupclient.sln
in Visual Studio and buildZERO_CHECK
,sdptransform
andmediasoupclient
one by one.
-
fatal error C1083: Cannot open include file: 'absl/base/attributes.h': No such file or directory
Copy
deps\webrtc-builds\out\src\third_party\abseil-cpp
todeps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64\include\third_party\abseil-cpp
- Back to the project root directory and configure cmake. set
C++ client side library for building mediasoup based applications built on top of Google's libwebrtc C++ library.