- 下载
git clone https://gitee.com/xia-chu/ZLMediaKit
cd ZLMediaKit
git submodule update --init
- 安装工具
sudo apt install -y build-essential
sudo apt install -y gcc g++
sudo apt install -y cmakesudo apt install -y build-essential cmake git libssl-dev libsdl1.2-dev libavcodec-dev libavutil-dev ffmpeg
- 编译openssl
LINUX下载编译OpenSSL_linux下载 openssl-CSDN博客
- 编译libsrtp
LINUX下载编译libsrtp-2.3.0_libsrtp-2.3.0.tar.gz-CSDN博客
- 编译
OPENSSL_DIR=/usr/opensslmkdir buildcd buildcmake .. \-DENABLE_WEBRTC=true \-DOPENSSL_ROOT_DIR=${OPENSSL_DIR} \-DOPENSSL_LIBRARIES=${OPENSSL_DIR}/libcmake --build . \--target MediaServer
- 启动
cp -r www release/linux/Debug/sudo ./MediaServer
- 测试
https://localhost