[icecast] XML statistics on remote server

MacSym macsym69 at yahoo.fr
Thu Feb 26 10:01:07 PST 2004



Hi everybody,

I am wondering if it is possible to generate the XML/XSL files on a remote
server (status.xsl, status2.xsl or stats.xsl). I am trying to create a
player that parses status.xml every 20 seconds in order to show the
currently played song (my player doesn't support ICY). Here is the problem:
if 1000 users are currently connected, status.xsl will be requested 3000
times in a minute, what really increase my Icecast server's CPU. For this
reason, I would like to generate such an XML/XSL file on my web server which
is a lot more powerful. I know I can store an XSL file on my web server
(let's call it "statusWEB.xsl") that would parse the original status.xsl;
but it doesn't change anything because if I call statusWEB.xsl into my
player, it will parse status.xsl, what means my Icecast server will be
contacted still 3000 times per minute...

I guess I can solve this problem either by:
- Setting up Icecast to PUSH status.xsl on a remote web server (is that
possible??) maybe with php or FTP.
- Create a script that would AUTOMATICALLY download status.xsl from Icecast
and make a copy on the web server. This script shouldn't need to be called
by any listener. I mean, it should do its job automatically by itself
without needing to be requested (because if it is requested 3000 times per
minute, it doesn't change anything at the problem)

Any idea??

Thanks in advance for any help!

MAX 

<p>-----Original Message-----
From: owner-icecast at xiph.org [mailto:owner-icecast at xiph.org] On Behalf Of
HidayahOnline.org Admin
Sent: Thursday, February 26, 2004 5:42 PM
To: icecast at xiph.org
Subject: Re: [icecast] XML statistics?

Michael H. Collins wrote:

> I have no prob seeing stats with mozilla.  Icecast has come so far in 
> a year.  Last year at this time there was no need for stats. hehe  We 
> were just glad to get the stream out.
>
>
>
> HidayahOnline.org Admin wrote:
>
>>
>>>
>>> This stats file is a sort of "virtual file", created by icecast on 
>>> demand. It doesn't live on the filesystem at any point.
>>>
>>> You can request it from the server using 
>>> http://server:port/admin/stats.xml
>>>
>>> Can you suggest some text for the documentation that would clarify 
>>> this?
>>>
>>> Mike 
>>
For further clarification, I missed that Mike had references 
"stats.xml", which I read, simply, as "stats.xsl".  I was only going to 
.xsl, before.  Both "/stats" and "/stats.xml" produce the appropriate 
XML file I have been seeking.  I am now successfully displaying 
Title/Artist (in this case, reciter, not really artist) on the front 
page of my site.

This XML stuff is really neat.  :)

And, in reference to Chup's comments, I didn't mean to be disrespectful 
in any way, i.e., "I PAID NOTHING FOR THIS SOFTWARE, SO WHY DOESN'T IT 
WORK LIKE THE $4,000 REALAUDIO SERVER!"  I hope I didn't come off that 
way.  ;)
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.

<p>--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list