Skip to content

Latest commit

 

History

History
51 lines (28 loc) · 761 Bytes

sfu.md

File metadata and controls

51 lines (28 loc) · 761 Bytes

medooze/sfu部署

Node安装

参考media-server-node-demo部署

下载代码

git clone https://github.com/medooze/sfu.git

修改代码

package.json

"medooze-media-server": "^0.27.2",
修改为
"medooze-media-server": "^0.43.1",  #这个版本号去https://github.com/medooze/media-server-node/releases下面找

安装依赖项

npm install  
#或者
npm install --unsafe-perm

# 秘钥文件生成
openssl req -sha256 -days 3650 -newkey rsa:1024 -nodes -new -x509 -keyout server.key -out server.cert

# 启动服务,ip设置为客户端都能访问到的ip,不能为0.0.0.0
node index.js [ip]

客户端访问

https://[ip]:8084/index.html