Branch: master
Clone or download
Latest commit c737098 Feb 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Update deps Feb 2, 2019
server Remove transport max bitrate artificial limitation Feb 10, 2019
.gitignore v2 Nov 2, 2017 Remove transport max bitrate artificial limitation Feb 10, 2019 Change license to MIT (fixes #19) Jan 10, 2018


A demo of mediasoup.

Try it online at


  • Clone the project:
$ git clone
$ cd mediasoup-demo
  • Set up the server:
$ cd server
$ npm install
  • Copy config.example.js as config.js and customize it for your scenario:
$ cp config.example.js config.js
  • Set up the browser app:
$ cd app
$ npm install
  • Globally install gulp-cli NPM module (may need sudo):
$ npm install -g gulp-cli

Run it locally

  • Run the Node.js server application in a terminal:
$ cd server
$ node server.js
  • In another terminal build and run the browser application:
$ cd app
$ gulp live
  • Enjoy.

Deploy it in a server

  • Build the production ready browser application:
$ cd app
$ gulp dist
  • Upload the entire server folder to your server and make your web server (Apache, Nginx...) expose the server/public folder.

  • Edit your server/config.js with appropriate settings (listening IP/port, logging options, valid TLS certificate, etc).

  • Within your server, run the server side Node.js application. We recommend using the pm2 NPM daemon launcher, but any other can be used.