-
Notifications
You must be signed in to change notification settings - Fork 141
medooze_sfu
liwenfeng edited this page Jan 9, 2019
·
1 revision
# 更新npm源
npm config set registry https://registry.npm.taobao.org
# 安装nodejs
sudo apt-get install nodejs
# 查看node的版本
➜ ~ node -v
v8.10.0
# 下载代码
git clone https://github.com/medooze/sfu.git
cd sfu
# 修改代码
package.json
"medooze-media-server": "^0.27.2",
修改为
"medooze-media-server": "^0.43.1",
# 安装
npm install
# 生成秘钥文件
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>
注意:该服务器必须保证所有的Port都是可以被外网访问的,否则可能会导致client与server之间无法联通!!!
在浏览器输入:
https://[ip]:8084/index.html