This is just my playground for WebRTC group conversation with MediaSoup (NOT A STABLE APPLICATION)
Currently, works on Google Chrome only.
setup them in server/conf/*.js
Here is an example with Let's Encrypt
Replace example.org with your domain.
http: {
tls: {
cert: "/etc/letsencrypt/archive/example.org/fullchain1.pem",
key: "/etc/letsencrypt/archive/example.org/privkey1.pem"
},
host: "example.org",
port: 443
},
media part in config file is just a MediaSoup's configuration.
See https://mediasoup.org/api/
If your service is running behind NAT, you need to set public IP address in server/conf/*.js
write following parameters correctly.
- rtcAnnouncedIPv4
- rtcAnnouncedIPv6
Here is an example.
media: {
server: {
logLevel: "info",
rtcIPv4: true,
rtcIPv6: false,
rtcAnnouncedIPv4: "<PUBLIC_IP_HERE>",
rtcMinPort: 40000,
rtcMaxPort: 49999
},
Check your firewall. (If you're using AWS, SecurityGroup setting)
according to Node manner, install node packages written in package.json
npm install
webpack
sudo node ./server/main.js --harmony
chat-lite is provided under The MIT License.