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.
 
 
 
Go to file
bmamihai b94b1bff86
Merge pull request 'docker' (#18) from docker into develop
4 weeks ago
doc LINXD-2303: Update diagrams Mediasoup connect & produce; Update diagram Client-Client workflow 2 months ago
public LH-276: Add close-producer event handler; Update client 1 month ago
server/ssl Added logs for callId 8 months ago
.dockerignore replace individual copy with copy all 3 months ago
.env LH-252: Update .env variables 6 months ago
.gitignore added build.sh 5 months ago
.prettierrc first commit 8 months ago
Dockerfile added command for limiting cpu/memory 3 months ago
README.md LH-265: Update doc; Update bundle 4 months ago
app.js LH-276: Refactor consumer-resume 1 month ago
build.sh improved build to get also the git log to know what is on server 2 months ago
docker-compose.yml Added docker and docker-compose files 8 months ago
package-lock.json LINXD-2197: Added comments; Catch errors; Fix package.json start:run script 6 months ago
package.json LINXD-2197: Added comments; Catch errors; Fix package.json start:run script 6 months ago
tsconfig.json Added room it when close transport; Added ts config file 8 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)

Web client

  • 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: https://HOST/sfu/?assetId=1&&accountId=1&producer=true&dest_asset_id=75&assetName=Adi 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 dest_asset_id= the addressee with whom the call is made
  • To make a call using this client, you need a microphone and permission to use it
  • For any changes related to the client, the command `npm run watch' will have to be used to generate the bundle.js used by the web client

Demo project

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