Try it online at meet.sophanorin.com
Clone Livstream git repository
git clone https://github.com/Sophanorin/livestream.git
cd livstream
Note: Livestream will start on the default settings (if you don't create your own configuration files)
Important! You must always rebuild the livestream when you change something in the configuration files.
Just clone the example files and adjust them if required.
cp server/config/config.example.js server/config/config.js
cp app/public/config/config.example.js app/public/config/config.js
Example when using config.json file
{
[
{
"urls": [
"turn:turn.example.com:443?transport=tcp"
],
"username": "example",
"credential": "example"
}
]
};
Note: It is highly recommended to use yarn package manager.
cd app
yarn && yarn build
cd ../server
yarn && yarn build
Run on server (as root or with sudo)
# Run the Node.js server application in a terminal:
cd server
sudo yarn start
Run locally (for development)
# run a live build from app folder:
app$ yarn start
# and run server in server folder:
server$ yarn start
Port | protocol | description |
---|---|---|
443 | tcp | default https webserver and signaling - adjustable in server/config/config.js ) |
4443 | tcp | default yarn start port for developing with live browser reload, not needed in production environments - adjustable in app/package.json) |
40000-49999 | udp, tcp | media ports - adjustable in server/config/config.js |
You need an additional TURN-server for clients located behind restrictive firewalls!
Add your server and credentials to server/config/config.js