Kurento Room Server in NodeJS
Install package from npm or yarn
> npm install kurento-room-server || yarn add kurento-room-server
The server is a simple module designed to work on top of ExpressJS, and requires loading a JSON config file.
Client side implementation resides in static/ folder
const path = require('path');
const express = require('express');
const kurentoServer = require('kurento-room-server');
const config = require('./main/kurentoConfig.json');
const app = express();
const roomManager = kurentoServer(app, config);
app.use(express.static(path.join(__dirname, './dist')));
/
keys/ : self signed certificates
main/ : kurento related modules
main.js : basic kurento server implementation
static/
build/ : webpack scripts
config/ : webpack config
src/
kurentoRoom.js : kurento room client
The project has three npm scripts :
setup, which installs every dependencies
npm run setup
dev, which runs app with webpack
npm run dev
demo, which runs previous steps
npm run demo