libmediasoupclient based application that produces artificial sound and video to the specified room in mediasoup-demo mediasoup-demo application. The video consists of some colored rectangles moving towards the lower-right corner of the image. Credit for the artificial media creation goes to the WEBRTC team (LICENSE).
- mediasoup website and documentation: mediasoup.org
- mediasoup support forum: mediasoup.discourse.group
Once installed (see Installation below):
SERVER_URL=https://my.mediasoup-demo.org:4443 ROOM_ID=broadcaster build/broadcaster
Environment variables:
SERVER_URL
: The URL of the mediasoup-demo HTTP API server (required).ROOM_ID
: Room id (required).USE_SIMULCAST
: If "false" no simulcast will be used (defaults to "true").ENABLE_AUDIO
: If "false" no audio Producer is created (defaults to "true").WEBRTC_DEBUG
: Enable libwebrtc logging. Can be "info", "warn" or "error" (optional).
- libmediasoupclient (already included in the repository)
- cpr (already included in the repository)
- OpenSSL (must be installed in the system including its headers)
git clone https://github.com/versatica/mediasoup-broadcaster-demo.git
cmake . -Bbuild \
-DLIBWEBRTC_INCLUDE_PATH:PATH=${PATH_TO_LIBWEBRTC_SOURCES} \
-DLIBWEBRTC_BINARY_PATH:PATH=${PATH_TO_LIBWEBRTC_BINARY} \
-DOPENSSL_INCLUDE_DIR:PATH=${PATH_TO_OPENSSL_HEADERS} \
-DCMAKE_USE_OPENSSL=ON
make -C build
Some files contain specific license agreements, written in the beginning of the respective files.
NOTE 1: PATH_TO_OPENSSL_HEADERS
is /usr/local/opt/openssl/include
if you install OpenSSL using Homebrew in OSX.