View previous topic :: View next topic |
Author |
Message |
Murrawhip
Joined: 21 Dec 2010 Posts: 58
|
Posted: Mon Jan 31, 2011 11:13 pm Post subject: Metadata format |
|
|
I can't figure out getting now playing information for icecast. I'm pretty capable when it comes to PHP - that isn't the problem.
Is the metadata sent via a source client supposed to be in XML format? Or just plain text?
The radio automation software my client uses, "iMediaTouch", is only able to output a now-playing file in either XML, or HTML. I then would use edcast to select that file, and it'd get sent along with the stream.
The HTML file is out of the question because everything is already formatted and there isn't a way to change how it's formatted.
I'd be quite comfortable taking the XML file, as I could get what I wanted from it with PHP pretty easily, but two problems:
Icecast only seems to receive the first line of the file "<?xml version='1.0' encoding='ISO-8859-1' ?>"
The XML is displayed if listeners tune in with itunes or winamp, etc., instead of the song playing.
Should I be focusing my efforts towards finding a way to get a file that is simply 'artist - song', updating on each song change with iMediaTouch, so I can send that with edcast? |
|
Back to top |
|
|
karlH Code Warrior
Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue Feb 01, 2011 2:11 am Post subject: |
|
|
I'm not entirely following you here, with non-ogg metadata updates from the source client (eg edcast), the traditional method does not use XML. The metadata is passed in the query string of the GET request to /admin/metadata or /admin.cgi eg
/admin/metadata?mount=/mystream&mode=updinfo&song=name - title
karl. |
|
Back to top |
|
|
davect99
Joined: 04 Oct 2010 Posts: 44
|
Posted: Tue Feb 01, 2011 12:19 pm Post subject: |
|
|
You're doing it right, but your automation system isn't spitting out a compatible file. Basically Edcast reads the first line of the text file, that's why you see the XML stuff. You'll somehow need to output a single line file in the format Artist - Title. |
|
Back to top |
|
|
liteFun
Joined: 13 Jan 2006 Posts: 79
|
Posted: Thu Mar 10, 2011 3:10 pm Post subject: |
|
|
Let automation software spit out XML.
Make small PHP script that reads correct data and sends it to icecast (using "/admin/metadata?mount=/mystream&mode=updinfo&song=name - title"
format (you may need to add username and password too). |
|
Back to top |
|
|
|