centos8 mediasoup 搭建

环境需求
【Requirements】https://mediasoup.org/documentation/v3/mediasoup/installation/
下载代码
git clone https://github.com/versatica/mediasoup-demo.git
server 安装
1)编译安装
cd mediasoup-demo/server
npm install
2)配置
cp config.example.js config.js


备注: 上面的 ip 配置成 0.0.0.0 会出问题,建议直接用真实 ip,
启动 server
node server.js
client 配置
cd mediasoup-demo/app
npm install
npm install -g gulp-cli
启动 client
gulp live
测试
https://ip:3000/
错误问题
运行 app 失败,修改 gulpfile.js
复制代码
评论