需求
- zlmediakit 8默认支持webrtc,并且支持whip协议的推流,whep的拉流
过程
1.下载代码并编译
git clone https://github.com/ZLMediaKit/ZLMediaKit.git
cd ZLMediaKit/
git checkout 8.0
git submodule update --init --recursive
mkdir build
cd build/
cmake .. -DCMAKE_BUILD_TYPE=Release
2.查看版本
./MediaServer --version
3.推流测试
可以使用obstudio直播推送一个mp4文件,地址
http://xxx:9080/index/api/whip?app=live&stream=test
- 拉流测试
http://172.26.1.247:9080/index/api/webrtc?app=live&stream=test&type=play
5.可以在这个地址查看哪些直播流
6.zlm自带的webassist页面
secret可以在config.ini中查找
http://xxxx:9080/webassist/?secret=xxxx
