Dewan159
Dewan159

Reputation: 3074

One 2 many audio streaming, via NodeJS or whatever

For sometime now I've been trying to do something that I never thought that it would be that hard: audio streaming. My objective is simple; a simple web app through which a certain someone can click a button and live-stream his own voice to other people using this app. It's an online classroom of sorts. Here's the details:

Of course I spent so many hours googling and stackoverflow-ing this problem, and here is what I could understand so far:

I feel like it should be straight forward, but I cannot get it to work, I cannot piece all of this together and offer a stable and good experience for the user.

So again, I would love to know how to do the following:

Break the GetUserMedia raw data into packets and convert it to mp3, stream it to the server, where a script (NodJS probably) can store it locally and stream it whoever tuned-in, in real time.

I am open to whatever tool you recommend, I know that NodeJS will be present in the solution, and I am happy to use it. If the streaming could be done via a 3rd-party tool, I have no problem with that.

Thanks you in advance.

Upvotes: 2

Views: 1727

Answers (1)

Meligy
Meligy

Reputation: 36594

I see your comment about WebRTC, but I think you should investigate it more.

Like what you see here in this (old) post: http://servicelab.org/2013/07/24/streaming-audio-between-browsers-with-webrtc-and-webaudio/

Otherwise, you might have to go for a third party solution, like https://www.crowdcast.io/

(Even if you find a video-only solution, you can use a static picture or so for the video)

Event broadcasting is a good business for many companies. If it was that easy, there wouldn't be only few and well known competitors in the market.

Upvotes: 2

Related Questions