Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Node.js synchronized audio streaming between server and clients?

I am trying to build a web application that will stream an audio in the browser (without any plugins), with an ability to let other users join in to www.mysite.com and the audio will be streamed to every connected user simultaneously from the current audio position of the host (aka synchronized audio playing between server and clients).

What do I need to do implement something like that? I am working on a Node.js/Express project right now, but I haven't touched Stream or Buffer API. Is that what I would need to use? Also what about WebRTC? Is it applicable here?

like image 312
Sahat Yalkabov Avatar asked Dec 05 '12 00:12

Sahat Yalkabov


1 Answers

You should take a look at binaryjs

From their description:

BinaryJS is a lightweight framework that utilizes websockets to send, stream, and pipe binary data bidirectionally between browser javascript and Node.js.

like image 50
Joel Chu Avatar answered Oct 25 '22 19:10

Joel Chu