I want to create a simple personal live audio system. Just like a personal radio station. (I know there are many personal radio station services, but I want to build my own here)
Here is a simple explanation I want to build.
1. Build a server side code with Java that keeps playing specific audio files 24/7
2. If I connect to 1's address from other devices I can listen to it
The point is that I want it to be like a radio station.
It is not like the audio file is triggered to play by connecting 1.
1 is always playing and if I connect to it, I am going to get to listen what 1 is playing at the moment I connect to it.
I know this is a pretty broad question, so the simple steps are welcome.
i.e: You can use this java library to make server playing your music 24/7, and this method to listen to it.
Thank you for your help in advance.
Something like HTTP live streaming or MPEG-Dash should be relatively easy to implement in Java. Both work by splitting audio files into short segments and serving them via http, along with some metadata indicating the current position and which segments are up next.
There don't seem to be mature Java libraries for them, but one could probably use other tools like gstreamer. See the wikipedia pages for possible clients.