| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Sat Feb 09, 2008 3:49 pm Post subject: Newbie - Displaying current song info on website |
|
|
Hey guys,
Sorry if this has been asked before, but i couldnt find the information. I am trying to display information my website about the icecast stream, like the name of the song that is being played.
Can you tell me the easiest way to do this on a linux box?
Regards,
James |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sat Feb 09, 2008 6:04 pm Post subject: |
|
|
we provide the song information via the xsl pages or via the playlist log. How you get that information to a web page is up to you. Some use a background process to get the name or you could embed an icecast xsl link in your own web page.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sat Feb 09, 2008 7:29 pm Post subject: |
|
|
Hi Karl,
Thanks for the reply. I'm very new to this so unfortunately most of what you said doesn't make much sense to me. Are you able to provide a link to a site that explains my options in an idiot proof way? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 10, 2008 1:45 am Post subject: |
|
|
There's no such thing as idiot proof. You asked a very general question so I can only give you examples of the sort of thing a web developer could use. You can either use something like php to extract the information for producing a web page or use something to make the browser to retrieve the details. These are the sorts of decisions a web developer needs to make, I cannot make them for you.
karl. |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Sun Feb 10, 2008 12:27 pm Post subject: |
|
|
| Ok, are there any php example scripts to receive the current song from icecast? |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Sun Feb 10, 2008 5:15 pm Post subject: |
|
|
I don't have any, although other may do. In any case, trying to parse the html is complicated, why not make a cut down version like status2.xsl and parse that. That way you'd would have 1 stream per line so your php would be much easier to read.
karl. |
|
| Back to top |
|
 |
|