media-bits-recorder
This package is to extract bits from the video/audio device on the client side.
Install
npm install --save media-bits-recorder
Import to your project
There are two ways to import MediaBitsRecorder.
adapter.js shim
It is strongly recommended to add the adapter.js shim.
Script tag
Browsify/Webpack
var MediaBitsRecorder = ;
Or in ES6:
;
Usage
After importing the package, you could simply interact with the apis.
var recorder = video: true audio: false; recorder; recorder; ... // trigger the on event every 500 msvar interval = 500;recorderstartinterval; ... // never trigger on event until stoprecorderstart; ... // trigger the on video/audio eventrecorder;
Testing
npm test
Live example
npm install
npm run build:example
PORT=8000 npm start
Open your browser: http://localhost:8000
Author
Jaosn Yu