The documentation for Icecast2 references a structured XML document
containing statistics, such as the following from the docs:
<?xml version="1.0"?>
<icestats>
<client_connections>13</client_connections>
<connections>14</connections>
<source_connections>1</source_connections>
<sources>1</sources>
<source mount="/test.ogg">
<artist></artist>
<audio_info>ice-samplerate=32000;ice-bitrate=Quality
-1;ice-channels=1</audio_info>
<ice-bitrate>Quality -1</ice-bitrate>
<ice-channels>1</ice-channels>
<ice-samplerate>32000</ice-samplerate>
<listeners>0</listeners>
<public>0</public>
<title></title>
<type>Ogg Vorbis</type>
</source>
</icestats>
At the following page:
http://www.icecast.org/files/icecast_docs/icecast2_stats.html
However, I cannot find such a file in my Icecast2 Win32 directory.
Obviously, I'm using the Win32 build of Icecast2, and I wish to parse
the XML file for display on the front page of my site. Perhaps it is a
configuration directive I have neglected?
Thanx in advance!
--- >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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
> >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 >Well, I still don't get an XML file when I visit that page on my server. Granted, all the information that is in the file is there, however, I can't use PHP's nifty XML parsing tools to get that information. To clarify the point, I would advise simply not using an XML file to represent the data, unless such a file is indeed attainable, whether actually existing on the file system or not. If a file like this can be generated at a given URL or by a command to the server, that would also be neato, but if nothing like the really exists, I would advise re-writing the page without the XML at all. All of this is assuming that I am understanding what you are saying - in that, whomever wrote the documentation simply used XML as a way to present the data. I would suggest, rather, a screen-shot of the actual page, or what the actual page looks like. --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Thursday 26 February 2004 16:52, HidayahOnline.org Admin wrote:> The documentation for Icecast2 references a structured XML document > containing statistics, such as the following from the docs:> http://www.icecast.org/files/icecast_docs/icecast2_stats.html > > However, I cannot find such a file in my Icecast2 Win32 directory. > Obviously, I'm using the Win32 build of Icecast2, and I wish to parse > the XML file for display on the front page of my site. Perhaps it is a > configuration directive I have neglected? > > Thanx in advance!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 --- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.