You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Sergiu Toma fc42c79210 Fix missing callId 3 days ago
doc LINXD-2197: Added workflow diagram 4 days ago
public Refactor transportclose 8 2 months ago
server/ssl Added logs for callId 2 months ago
.env LINXD-2222: Update 1 week ago
.gitignore Added logs for callId 2 months ago
.prettierrc first commit 2 months ago
Dockerfile Added docker and docker-compose files 2 months ago
README.md LINXD-2197: Added the initial demo project used; Check before set producerTransport and consumerTransport if it was set before 3 days ago
app.js Fix missing callId 3 days ago
docker-compose.yml Added docker and docker-compose files 2 months ago
package-lock.json LINXD-2197: Added comments; Catch errors; Fix package.json start:run script 4 days ago
package.json LINXD-2197: Added comments; Catch errors; Fix package.json start:run script 4 days ago
tsconfig.json Added room it when close transport; Added ts config file 2 months ago

README.md

Video server

Generating certificates

To generate SSL certificates you must:
  1. Go to /server/ssl
  2. Execute openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem

Development

To start in development mode you must:
  1. Install the dependencies npm install.
  2. Run the npm start:dev command to start the server in dev mode. (Any change will trigger a refresh of the server)

Production

To start in production mode you must:
  1. Install the dependencies npm install.
  2. Run the npm start:prod command to start the server in production mode. (To connect to the terminal, use pm2 log video-server)

  • The server will start by default on port 3000, and the ssl certificates will have to be configured
  • The web client can be accessed using the /sfu path ex: http://localhost:3000/sfu/?assetId=1&&accountId=1&producer=true&assetName=Adi&assetType=linx assetId = asset id of the unit on which you are doing the test accountId = account id of the unit on which you are doing the test producer = it will always be true because you are the producer (it's possible to put false, but then you have to have another client with producer true) assetName = asset name of the unit on which you are doing the test assetType = asset type of the unit on which you are doing the test

Demo project

The demo project used initially and then modified for our needs https://github.com/jamalag/mediasoup2