A demo of mediasoup.
Try it online at https://demo.mediasoup.org.
- Clone the project:
$ git clone https://github.com/versatica/mediasoup-demo.git
$ cd mediasoup-demo- Set up the server:
$ cd server
$ npm install- Copy
config.example.jsasconfig.jsand customize it for your scenario:
$ cp config.example.js config.js- Set up the browser app:
$ cd app
$ npm install- Globally install
gulp-cliNPM module (may needsudo):
$ npm install -g gulp-cli- 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.
- Build the production ready browser application:
$ cd app
$ gulp dist-
Upload the entire
serverfolder to your server and make your web server (Apache, Nginx...) expose theserver/publicfolder. -
Edit your
server/config.jswith 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.
MIT