MasterClass-Streaming Server

Version MIT licensed Build

This is platform for streaming server

Installation

npm install

Configure

Please following this guide to install ffmpeg

Ubuntu users

http://ubuntuhandbook.org/index.php/2017/05/install-ffmpeg-3-3-in-ubuntu-16-04-14-04/

And install some packages

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

Mac users

The simplest way to install ffmpeg on Mac OS X is with Homebrew.

Once you have Homebrew installed install ffmpeg from the Terminal with the following:

brew install ffmpeg

Usage

Development

npm run dev

Functional Test

npm test

Native test

1 . Create video folder and add one mp4 video to this folder

2 . Rename your video name to '1.mp4'

3 . Run npm run dev

How to Integrate with your server

Please make sure MongoDB is running

Edit white host in

./server/config/constant.js.

This API streaming only can be streamed from some host that you defined above

Change secretCODE in

./server/config/secret.js

Generate api key for your server

POST https://{yourhost}/api/newApiKey

params

{
  email: 'your_email',
  secretkey: {secretCODE that is changed above},
}

This app will response

{
  apikey: '{apikey_excample}'
}

Save this apikey in your Database

Use apikey for updating media to this app

License

MIT