baplive

0.1.4 • Public • Published

baplive

Info

This library used for live stream (NodeJS)

Add it to your project

Run npm install --save baplive

Usage

const express = require('express');
const app = express();
const server = require('http').Server(app);
const BAPLive = require('baplive');
 
const io = require('socket.io').listen(server, {pingTimeout: 30000});
BAPLive.default.init('mongodb://localhost:27017/baplivedemo', io);

Config

BAPLive.default.init(
    databaseUrl, //mongodb database url, eg: mongodb://localhost:27017/baplivedemo
    io,          //socket.io instance to communicate with client application
    config,      //
    key,         //secret JWT key for authentication
    streamUrl    //stream url for publishing and providing stream, eg: rtmp://172.16.1.0:1935/live
);

Api Document

Dependencies (12)

Dev Dependencies (7)

Package Sidebar

Install

npm i baplive

Weekly Downloads

0

Version

0.1.4

License

MIT

Last publish

Collaborators

  • devhuyhq