Hello. I want to realize the possibility of broadcasting music.

I will explain in more detail. Is it possible to take the music playing in the standard player, or in your own, make an m3u file, send it somewhere to the server. And to make it so that the one who runs this file at home, could listen to the music running on the first device? Something like a radio should work.

If not clearly painted, ask, explain in more detail.

What I want to see in the answer: - Is it possible in general; - an example of such an implementation; - other useful tips.)

Thank you all in advance

  • First I want to ask a question. Do you have a white ip on your device? Who will have to "listen", just like you can get through? - Lucky_spirit
  • not. But this is not required. Devay goes all to the cloud. And the "Listeners", in turn, are pulling everything off the cloud. because if you pull directly off, then for 2.3, etc., the listeners will simply lack the width of the channel. - user11344

2 answers 2

If we assume that all the music will be in the "cloud" (or at least duplicated there), then the task is quite simple. In the latest google I / O showed an example with two timers on different devices.

how to organize. The client may have a standard player, they do not need to know anything about the implementation details. On the control device you need your client. The client from time to time sends to the server the following songs that need to be played and the time (this is the pivot point) when they need to be played. If the manager changes the playlist (added / deleted / changed the order), then you need to send this information to the server.

In the latest GMC implementation (i.e. push) a "reverse push" was added, which greatly simplifies this task.

On the server side you can take for example icecast.org . For him, there are libraries (for example on php ) that will help to manipulate the playlist.

  • Thank. This option is one of the most suitable. But there is another problem ... It may be necessary to add a Voice "To read" some kind of speech. So it would be more convenient to transfer this by some kind of flow. - user11344
  • one
    Unless you need "live", you can record a "speech" and send it to the server. And the server will insert it into the playlist. - KoVadim
  • That's probably the "Live" and need. Such a plan is possible to implement? - user11344
  • one
    Yes of course. Really do not know if it will work with icecast. - KoVadim

There is an implementation option, if you make an UPnP or Android DLNA server from an Android phone.

On Google Play, there are enough of these applications: tynts or here

If you write yourself - another question, but why?

  • Thank. The task is not to make money on the finished application. And gain experience in the implementation of such a plan of decisions. - user11344