Reputation: 33634
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
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
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:
Upvotes: 0