Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Metadata format

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Murrawhip



Joined: 21 Dec 2010
Posts: 58

PostPosted: Mon Jan 31, 2011 11:13 pm    Post subject: Metadata format Reply with quote

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
View user's profile Send private message Visit poster's website
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Feb 01, 2011 2:11 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
davect99



Joined: 04 Oct 2010
Posts: 44

PostPosted: Tue Feb 01, 2011 12:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
liteFun



Joined: 13 Jan 2006
Posts: 79

PostPosted: Thu Mar 10, 2011 3:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber