I use JLayer to broadcast online radio music, so the simple code for this is here: (Where StreamPlayer is a special implementation of JLayer >)
// Example URL of the radio station http://radio.flex.ru:8000/radionami
public void playRadioStream(URL spec) { try {
Problem:
I can’t understand how to extract information from this connection, how the song is playing now from this radio station or the name of the station, etc. Help is really appreciated!
Edit:
If you want to use JLayer instead of StreamPlayer , it will work, although you will have to run it on another Thread from the main Thread application.
source share