Skip to content

mediasoup client side C# binding based on libmediasoupclient

License

Notifications You must be signed in to change notification settings

Antelcat/MediasoupClient.Net

 
 

Repository files navigation

MediasoupClient.Net

mediasoup client side C# binding based on libmediasoupclient

How to build release-x64 on Windows

  • build libwebrtc

    Since the libmediasoupclient deps on libwebrtc, you need to build libwebrtc before configuring cmake.

    1. Make sure you have all submodules inited. Folder deps\webrtc-builds shouldn't be empty.
    2. 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.

    Trouble shooting

    • ninja: line 8: exec: python3: not found

      Create a file named python3 at deps\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 the deps\webrtc-builds\depot_tools folder, so you must create this file AFTER reset and BEFORE compile.

  • build libmediasoupclient

    1. 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 set LIBWEBRTC_INCLUDE_PATH to .\deps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64\include for a win-x64 release build.
    2. Open the generated mediasoupclient.sln in Visual Studio and build ZERO_CHECK, sdptransform and mediasoupclient one by one.

    Trouble shooting

    • 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 to deps\webrtc-builds\out\webrtc-xxxxx-xxxxxxx-win-x64\include\third_party\abseil-cpp


libmediasoupclient

C++ client side library for building mediasoup based applications built on top of Google's libwebrtc C++ library.

Website and Documentation

Support Forum

Authors

License

ISC

About

mediasoup client side C# binding based on libmediasoupclient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • C++ 92.8%
  • Python 3.3%
  • CMake 1.9%
  • Shell 1.3%
  • Other 0.7%