You’re probably better off looking into using WebRTC, rather than pumping all the audio data through a single server, you do it peer to peer in the browser.
Useful links: Homepage: http://www.webrtc.org/ HTML5 Rocks on WebRTC: http://www.html5rocks.com/en/tutorials/webrtc/basics/ – Micheil On 4 Jan 2014, at 12:03 pm, Jérémy Villemain <lagonnebu...@gmail.com> wrote: > Hello, > > Im pretty new to NodeJs. > I want to do something, but i don't really know how. > > I saw getUserMedia(), it's something really cool. > > So what i want to do, is: > > Client start an audio session through getUserMedia, send this stream to > NodeJs server and nodeJS broadcast the stream and other client can listen to > people. > > I use nodeJs with server.io, i don't know if there is something related. > > if(navigator.getUserMedia) { > navigator.getUserMedia({audio: true, video: false}, function > (stream) { > window.AudioContext = window.AudioContext || > window.webkitAudioContext; > var audioContext = new AudioContext(); > var mediaStreamSource = > audioContext.createMediaStreamSource(stream); > mediaStreamSource.connect( audioContext.destination ); > > socket.emit('audio', mediaStreamSource); //not correct > }); > } > > I want to do something like this, emit the audio stream and get it to the > server and resend it. > > I hope you ll understand what im saying. > > > -- > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "nodejs" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to nodejs+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.