Coder Social home page Coder Social logo

masterclass-streaming's Introduction

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

masterclass-streaming's People

Contributors

ndduy avatar

Watchers

 avatar James Cloos avatar Hoang Nam Hai avatar Tho Vo avatar leanhthang avatar quytruong1808 avatar phinhn avatar Duy Nguyễn avatar  avatar  avatar  avatar  avatar  avatar Hung Diep avatar  avatar andrino avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.