f1658f1b3cf4231b7537b94fc0b3dbf4a12685cc
mediasoup-demo
A demo of mediasoup.
Try it online at https://demo.mediasoup.org.
Installation
- 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.js:
$ cp config.example.js config.js
- Set up the browser app:
$ cd app
$ npm install
- Copy
config.example.jsasconfig.js:
$ cp config.example.js config.js
- Globally install
gulp-cliNPM module (may needsudo):
$ 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 prod
-
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, TLS certificate, etc). -
Within your server, run the server side Node.js application. We recommend using the forever NPM daemon launcher, but any other can be used:
$ forever start PATH_TO_SERVER_FOLDER/server.js
Author
License
All Rights Reserved.
Description
Languages
JavaScript
97.8%
RPM Spec
1.1%
Shell
0.4%
Dockerfile
0.3%
CSS
0.2%
Other
0.2%