[Playlist] Re: [Icecast] How's XSPF support on Icecast if any?

Sebastian Pipping webmaster at hartwork.org
Tue May 15 19:01:38 UTC 2007


Thomas B. Ruecker wrote:
> Ivo Emanuel Gonçalves wrote:
>> On 5/15/07, Thomas B. Ruecker <ruecker at ruecker-itk.de> wrote:
>>> I've built a first version of a xslt that produces xspf output.
>>> You can find it here:
>>> http://www.ruecker-itk.de/icecast/xspf/
>>> stats.xml - raw xml metadata for the whole server at some point in time
>>> xspf.xsl - the xslt sheet
>>> xspf.xsl.out - the output as produced by the server

---------------------------------------------------------------------
Nice! One thing unclear to me is why the location tags
in <xspf.xsl.out> are empty? Also shouldn't it be
extracted from <listenurl> instead of the mount attribute?
Extra problem is, that empty location tags are not allowed
in XSPF so they would have to be omitted then.
---------------------------------------------------------------------



> I see that this xslt is only one step to full xspf support in icecast
> (if desired). But it certainly was the easiest approach for me.
> It simply presents all currently playing streams including all their
> metadata as a playlist.
> 
> I'd be grateful for some hints about what to do to the metadata that
> ended up in <annotation>.

---------------------------------------------------------------------
You mean losing the structure inside the annotation tag?
You could in addition create an extension, that holds
the same elements that the icecast stats do.
What I have in mind looks like this:

   <track>
     <extension application="your_URI_here">
       <server_description>copied over</server_description>
       <server_name>copied over</server_name>
       [..]
     </extension>
   </track>

That way you can have best of both worlds: Informative
<annotation> and preservation of the old structure.
In case you like the extension idea let us know if
you need help defining it.



Sebastian




More information about the Playlist mailing list