43266

Recording audio and streaming to clients from nodejs

Question:

I need to take recorded audio (I believe using the getUserMedia() function) and stream it to connected clients' browser from a nodejs server. I've looked around at some examples with nothing too definitive, and with varying approaches.

I can't use webrtc. It must be using a server to send a stream to clients. I can however use getUserMedia() (which I believe is part of webrtc) to record the audio and send it to the nodejs server).

Are there any resources or examples that show something like this working?

Answer1:

<a href="https://github.com/RationalCoding/media-source-stream" rel="nofollow">media-source-stream</a>.

Takes your getUserMedia and send video/audio over a WebRTC DataChannel without using media channels.

Recommend

  • Get mic audio in android. AudioContext
  • Chrome and Firefox are not able to access iPhone Camera
  • How to set remote description for a WebRTC caller in Chrome without errors?
  • Bug reporter: Alternatives to getDisplayMedia?
  • Where is the source for: “Function application has higher precedence than infix operators” [Haskell]
  • How to compile picoProlog from source code?
  • Postgres Full Text Search on Array Column
  • Android: playing audio files in /res/raw by file name
  • NLog to PostgreSQL connection
  • Javascript variables for Get http
  • Best style for iterating over a small number of items in Python?
  • miss prototype functions when “new” a instance
  • Xcode 6 - Press button to play sound
  • Fixed frame rate using android Camera2 api
  • SoundPlayer not playing any bundled windows sounds PCM wav files
  • iOS - How to access the device's file library?
  • getUserMedia results in TrackStartError in Chrome
  • closing WCF proxy
  • 302 Redirect from http to https in Android using Dropbox short Hyperlinks
  • Finding number of samples in a .wav header
  • How to crop a mp3 in ASP.NET + C#?
  • How to model a mixture of finite components from different parametric families with JAGS?
  • what makes a request a new request in asp.net C#
  • Python pickle not one-to-one: different pickles give same object
  • SAVE attribute needed for Fortran variables when only the C_LOC address is returned to a C program?
  • System.InvalidCastException: Specified cast is not valid
  • How to attach a node.js readable stream to a Sendgrid email?
  • Read a local file using javascript
  • Apache 2.4 and php-fpm does not trigger apache http basic auth for php pages
  • Resize panoramic image to fixed size
  • Volusion's generic SQL folder, functionality
  • Updated Ionic CLI but shows previous version (Windows)
  • Javascript + PHP Encryption with pidCrypt
  • Transpose CSV data with awk (pivot transformation)
  • How do you join a server to an Active Directory (domain)?
  • coudnt use logback because of log4j
  • Qt: Run a script BEFORE make
  • Append folder name and increment by 1 using batch script
  • Android Heatmap on canvas or ImageView
  • Conditional In-Line CSS for IE and Others?