Sahat Yalkabov
Sahat Yalkabov

Reputation: 33634

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?

Upvotes: 11

Views: 13218

Answers (2)

Joel Chu
Joel Chu

Reputation: 948

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.

Upvotes: 1

Dawid Dominiak
Dawid Dominiak

Reputation: 507

I've been thinking about WebRTC in similar use some time ago. It's one of solutions to create a WebRTC peer in server side node application. I've never done something like that, but check i.e. that question:

Use node.js as a WebRTC peer?

Upvotes: 0

Related Questions