recordrtc-nodejs
v1.0.6
Published
Records audio/video separately as wav/webm. POST both files in single HttpPost-Request to Node.js (FormData). Node.js code saves both files into disk. Node.js code invokes ffmpeg to merge wav/webm in single webm file. The merged webm file's URL is returne
Downloads
130
Maintainers
Readme
RecordRTC to Node.js
Open sourced
- https://github.com/muaz-khan/RecordRTC/tree/master/RecordRTC-to-Nodejs
mkdir node_modules
npm install recordrtc-nodejs
# to run it!
cd node_modules/recordrtc-nodejs/
mkdir node_modules
# install prerequisites
npm install
node server.js
How to test?
In the node.js command prompt window; type node server.js
; then open http://localhost:9001/
.
There are some other NPM packages regarding RecordRTC:
- https://www.npmjs.org/search?q=RecordRTC
Make sure that directory names MUST NOT have spaces; e.g.
// invalid directory
C:\Hello Sir\Another\RecordRTC
// valid
C:\Hello-Sir\Another\RecordRTC
// invalid directory
C:\First\Second Dir\Third\RecordRTC
// valid
C:\\First\Second-Dir\Third\RecordRTC
This experiment:
- Records audio/video separately as wav/webm
- POST both files in single HttpPost-Request to Node.js (FormData)
- Node.js code saves both files into disk
- Node.js code invokes ffmpeg to merge wav/webm in single "webm" file
- The merged webm file's URL is returned using same HTTP-callback for playback!
Other Demos
- https://github.com/muaz-khan/RecordRTC
License
RecordRTC-to-Nodejs is released under MIT licence . Copyright (c) Muaz Khan.