MP3 player with synchronized playback (no streaming)

Want a player (light enough to put up) who plays the mp3s directory in such a way that if you join at 3:33:33 you hear others hear, not track one. like pseudo-transfer / stream. how do i achieve this - what looks beautiful / maybe minimized / easy?

I am trying to use mirvling but there is no such luck. any ideas?

+4
source share
1 answer

It is unbelievable that you will want to find something that could be replaced. In addition, this is usually not performed on the client side. You have not indicated which languages ​​and which are not used, so I will provide a general answer.

There are two ways to do this.

Method 1. Encoding the stream on the server

Basically, with this, you create an audio stream on a server that consists of playable audio files. Customers play an audio stream, like any traditional "live" Internet radio station, without knowing how to create a stream. You can use SHOUTcast / Icecast for servers and several different stream source codes such as Ices.

Method 2. Make media available and let customers understand it.

To do this, you will start from scratch. Have a JSON channel or similar file that contains a playlist of audio files to be played back when. On the client side, you can use JWPlayer or similar, and search for the desired position of the current track when it starts, and then play the tracks in order from there.

+1
source

Source: https://habr.com/ru/post/1390741/


All Articles