2.0.3 • Published 7 years ago
@motionbank-js/media-server v2.0.3
Motion Bank Media Server
Handles basic local media streaming and uploads.
:ghost: A work in progress.
Requirements
- NodeJS (^9.8)
- ffmpeg/ffprobe (^3.4)
To record video into the server's media folder download the media recorder for macOS.
Install
Clone, cd
into repo and run:
npm i
Run
You can set these env vars:
# server config
PORT=8888 # server port
SECURE=1 # use https:// (not implemented, needs proxy server)
# streamer conf
STREAMER_ROOT_PATH="" # root path
STREAMER_ROOT_FOLDER="media/" # root folder
# media storage
MEDIA_PATH="media"
To start the server run:
npm start
Development
Code linting (ESLint) can be run with:
npm run lint
The server prints debug output for itself and express with:
npm run dev
License
:copyright: 2018 Mainz University of Applied Sciences (Motion Bank Project) – Released under the MIT license