[Icecast] Metadata Swapping: How do they do it?

Ian Andrew Bell
Thu, 05 May 2005 12:16:20 -0000

Think I answered my own question really.

The display in iTunes, for example, is swapping between what in
status.xsl would be Stream Title and Current Song.


If Song is updated like so:
http://admin:password@myserver.pulverradio.com:8000/admin/metadata?
mount=/high.mp3&mode=updinfo&song=ACDC+Back%20In%20Black

...then what exactly is the verbage to update StreamTitle?

http://admin:password@myserver.pulverradio.com:8000/admin/metadata?
mount=/high.mp3&mode=updinfo&StreamTitle=PulverRadio

...doesn't work.

My (potentially misguided) belief is that the client downloads/receives
the latter attribute once, on initially connecting to the relay.

KH and I have been playing with a branch he built that lets you
configure all that stuff in the icecast.xml file however it's not
making it into the stream.

-Ian.


On 5-May-05, at 12:04 PM, Tristan Horn wrote:

> (replying privately as I'm not sure this is too useful)
>
> On Thu, May 05, 2005 at 10:28:19AM -0700, Ian Andrew Bell wrote:
>>
>> So when I listen to other stations that stream using
>> icecast/shoutcast and ices/shoutcast source the player is swapping
>> and/or scrolling between what looks like the name of the station and
>> the currently playing song.  This is what I want to achieve with our
>> efforts.  This means that somehow we have to tell the player, via the
>> relay servers, BOTH the static station information AND the currently
>> playing track.
>>
>> The question is, how exactly do they arrive at this information?
>
> Swapping and scrolling are two completely different things. :)  Do you
> have an example of a station that does this?
>
> Not sure if it helps, but I believe the metadata interval is usually
> set to 8192 bytes, so for a 128k stream, that's twice per second that
> you could theoretically update the metadata.
>
> Tris
>