Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How can I show my stats on my web forum

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Josh Camplin
Guest





PostPosted: Mon Oct 03, 2005 3:17 pm    Post subject: How can I show my stats on my web forum Reply with quote

Below is the code I use to display my stats from my icecast.
Does anyone know just by looking at this code how I could implement any of this into my web forum, so that people can view what is being broadcasted and such....

How do all these online radio stations do it? I mean someone has to know how to do this right? There are a ton of sites on the net that do this.

Code:
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
<xsl:template match = "/icestats" >
<link rel="stylesheet" type="text/css" href="css.css" />
<xsl:for-each select="source">
   
<xsl:if test="server_description">
      <xsl:value-of select="server_description" />
      <br />
      <br />
   </xsl:if>
   <xsl:choose>
      <xsl:when test="listeners">
      <xsl:if test="listeners">
         <b>Current Listeners: <xsl:value-of select="listeners" /></b>
         <br />
         <br />
      </xsl:if>
         <h4>Playing Now:</h4>
         <xsl:if test="artist">
            <b><xsl:value-of select="artist" /></b>
            <br></br>
         </xsl:if>
         <xsl:value-of select="title" />
         <br />
         <br />
         <xsl:choose>
            <xsl:when test="authenticator">
               <a href="auth.xsl">Click to Listen!</a>
            </xsl:when>
            <xsl:otherwise>
               <a href="http://my ip:8000{@mount}.m3u"><b>Click to Listen!</b></a>
            <br></br>
            <br></br>
            </xsl:otherwise>
         </xsl:choose>
      </xsl:when>
      <xsl:otherwise>
         <xsl:value-of select="@mount" /> - Not Connected
         <br />
         <br />
      </xsl:otherwise>
   </xsl:choose>
</xsl:for-each>
<xsl:text disable-output-escaping="yes">&amp;</xsl:text>nbsp;
<br />
<br />
<br />
</xsl:template>
</xsl:stylesheet>
Back to top
Anonymous
Guest





PostPosted: Tue Oct 04, 2005 3:04 pm    Post subject: Reply with quote

There's a small php script that parses the admin/stats.xml which somebody posted on the mailinglist sometime ago.

try this: http://lists.xiph.org/pipermail/icecast/2004-September/007553.html
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber