Wiser服务器端代码。Wiser的产品定位是一个远程办公和视频会议私有云系统,专注于隐私与安全。Wiser服务器端采用Typescript+NodeJS语言开发,WebRTC的SFU使用了MediaSoup。Wiser is a dedicated cloud for telecommuting and video conferencing, born for privacy and security. https://rtc.liweix.com/admin
WiLearning 是一个开源、免费的在线课堂及视频会议系统,具备以下功能:
WiLearning使用了WebRTC技术,服务器端使用Typescript + Nodejs + MediaSoup开发,App端使用Angular + Ionic.
git clone https://github.com/wistingcn/WiLearning
node -v #版本需要大于v12
npm install -g cnpm
./build.sh all
./build.sh [server/app/admin]
# 编译后的代码位于dist目录
代码里提供了示例SSL证书,该证书对应的域名是rtc.liweix.com,实际运行时,请提供自己的证书,证书要与访问域名一致.
cd dist
node server.js --cert ../certs/rtc.liweix.com.pem --key ../certs/rtc.liweix.com.key
# 如果获取公网IP地址失败,则可以使用--publicIp 手动提供公网IP地址
node server.js --cert ../certs/rtc.liweix.com.pem --key ../certs/rtc.liweix.com.key --publicIp x.x.x.x
# 默认使用网卡名称 eth0 ,如果你的网卡名不同,须用 --eth 指定
node server.js --cert ../certs/rtc.liweix.com.pem --key ../certs/rtc.liweix.com.key --eth <ifname>
./start.sh
使用pm2后台运行:
npx pm2 start start.sh
WiLearning 支持Chrome、FireFox、Safari浏览器,推荐使用最新版本的Chrome浏览器。
https://[你的公网IP地址]/admin/
本项目使用到的webrtc技术在作者的书中进行了详细说明: