Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question