Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including recordrtc-nodejs with all npm packages installed. Try it out:

var recordrtcNodejs = require("recordrtc-nodejs")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

recordrtc-nodejs v1.0.6

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!

RecordRTC to Node.js

npm downloads Build Status: Linux

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:

  1. Records audio/video separately as wav/webm
  2. POST both files in single HttpPost-Request to Node.js (FormData)
  3. Node.js code saves both files into disk
  4. Node.js code invokes ffmpeg to merge wav/webm in single "webm" file
  5. 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.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free