[Icecast] Standard method to read current listeners without user/password
Ross Levis
ross at stationplaylist.com
Fri May 13 06:28:09 UTC 2011
Hi Geoff,
Status2.xsl looks very promising and easy to read.
If status2.xsl will continue to be included as it is now then we'll modify
the software to read this.
Regards,
Ross.
-----Original Message-----
From: Geoff Shang [mailto:geoff at QuiteLikely.com]
Sent: Friday, 13 May 2011 6:19 PM
To: Ross Levis
Cc: icecast at xiph.org
Subject: Re: [Icecast] Standard method to read current listeners without
user/password
Hi Ross,
Sorry if anyone else has already answered this.
Yes there is. Icecast can produce stats in any format desired using XSLT
templates. These take the built-in XML as input and can format the output
any way you like.
There are two XSLT templates included with Icecast2 by default, status.xsl
and status2.xsl. Status2.xsl would be easy to parse as it outputs in CSV
format. The format is:
MountPoint,Connections,Stream Name,Current Listeners,Description,Currently
Playing,Stream URL
Of course, as these are external files, the server admin could call them
whatever they want. But in my experience, most people leave them exactly
where they are installed. So you'll be able to find it at
http://server:port/status2.xsl
I've actually been meaning to write to you about this as I'm not real
wild about broadcasters having the admin password to the server either. I
wish there were some way to password-protect XSL-generated stats with some
other password in Icecast2 in order to keep the information safe from
prying eyes, but I don't think it is. Maybe a feature for 2.3.3, whenever
it comes out?
Geoff.
More information about the Icecast
mailing list