D
D
diem12016-02-18 11:50:09
JavaScript
diem1, 2016-02-18 11:50:09

How to stream mp3 file in real time in nodejs?

It is necessary that the mp3 (hosted on the server) file be played in browsers in real time, i.e. all listeners listen to the same thing, as in online radio.
What specific technologies and libraries are used for this and on what principle does it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Kubintsev, 2016-02-18
@akubintsev

I don't think the websocket idea is a good idea.
It's better to send a command and a pointer to a resource to reproduce, and let traditional HTTP take care of the rest. You just need to set up streaming to the desired file on the backend.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question