2005-08-12 16:44:38 -04:00
|
|
|
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" >
|
2007-09-05 21:33:29 -04:00
|
|
|
<xsl:output omit-xml-declaration="no" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes" encoding="UTF-8" />
|
2005-08-12 16:44:38 -04:00
|
|
|
<xsl:template match = "/icestats" >
|
2014-01-23 01:26:05 -05:00
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
2005-08-12 16:44:38 -04:00
|
|
|
<head>
|
|
|
|
<title>Icecast Streaming Media Server</title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="style.css" />
|
|
|
|
</head>
|
2014-01-23 01:26:05 -05:00
|
|
|
<body>
|
2008-05-09 19:14:52 -04:00
|
|
|
<h2>Icecast2 Status</h2>
|
2005-08-12 16:44:38 -04:00
|
|
|
<!--index header menu -->
|
|
|
|
<div class="roundcont">
|
|
|
|
<div class="roundtop">
|
2014-01-23 01:26:05 -05:00
|
|
|
<img src="/corner_topleft.jpg" class="corner" style="display: none" alt="" />
|
2005-08-12 16:44:38 -04:00
|
|
|
</div>
|
|
|
|
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="4">
|
|
|
|
<tr>
|
2014-01-23 01:26:05 -05:00
|
|
|
<td style="background-color: #656565">
|
2008-05-09 19:14:52 -04:00
|
|
|
<a class="nav" href="admin/">Administration</a>
|
|
|
|
<a class="nav" href="status.xsl">Server Status</a>
|
|
|
|
<a class="nav" href="server_version.xsl">Version</a></td>
|
2005-08-12 16:44:38 -04:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<div class="roundbottom">
|
2014-01-23 01:26:05 -05:00
|
|
|
<img src="/corner_bottomleft.jpg" class="corner" style="display: none" alt="" />
|
2005-08-12 16:44:38 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-23 01:26:05 -05:00
|
|
|
<p><br /></p>
|
2005-08-12 16:44:38 -04:00
|
|
|
<!--end index header menu -->
|
|
|
|
<!--mount point stats-->
|
|
|
|
<xsl:for-each select="source">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="listeners">
|
|
|
|
<div class="roundcont">
|
|
|
|
<div class="roundtop">
|
2014-01-23 01:26:05 -05:00
|
|
|
<img src="/corner_topleft.jpg" class="corner" style="display: none" alt="" />
|
2005-08-12 16:44:38 -04:00
|
|
|
</div>
|
2014-01-23 01:26:05 -05:00
|
|
|
<xsl:text disable-output-escaping="yes">
|
|
|
|
<!-- WARNING:
|
|
|
|
DO NOT ATTEMPT TO PARSE ICECAST HTML OUTPUT!
|
|
|
|
The web interface may change completely between releases.
|
|
|
|
If you have a need for automatic processing of server data,
|
|
|
|
please read the appropriate documentation. Latest docs:
|
|
|
|
http://icecast.org/docs/icecast-latest/icecast2_stats.html
|
|
|
|
--></xsl:text>
|
|
|
|
<div class="content">
|
|
|
|
<div class="dummy"></div>
|
|
|
|
<div class="streamheading">
|
2008-05-09 19:14:52 -04:00
|
|
|
<table cellspacing="0" cellpadding="0">
|
|
|
|
<colgroup align="left" />
|
|
|
|
<colgroup align="right" width="300" />
|
|
|
|
<tr>
|
|
|
|
<td><h3>Mount Point <xsl:value-of select="@mount" /></h3></td>
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="authenticator">
|
|
|
|
<td align="right"><a class="auth" href="/auth.xsl">Login</a></td>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2011-11-25 21:37:39 -05:00
|
|
|
<td align="right">
|
|
|
|
<a href="{@mount}.m3u">M3U</a>
|
|
|
|
<a href="{@mount}.xspf">XSPF</a>
|
2012-06-10 08:35:47 -04:00
|
|
|
<!-- <a href="{@mount}.vclt">VCLT</a> -->
|
2011-11-25 21:37:39 -05:00
|
|
|
</td>
|
2008-05-09 19:14:52 -04:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</tr></table>
|
|
|
|
</div>
|
2005-08-12 16:44:38 -04:00
|
|
|
|
|
|
|
<table border="0" cellpadding="4">
|
|
|
|
<xsl:if test="server_name">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Stream Name:</td><td class="streamstats"> <xsl:value-of select="server_name" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="server_description">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Stream Description:</td><td class="streamstats"> <xsl:value-of select="server_description" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
2008-05-09 19:14:52 -04:00
|
|
|
<xsl:if test="server_type">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Content Type:</td><td class="streamstats"><xsl:value-of select="server_type" /></td></tr>
|
2008-05-09 19:14:52 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="stream_start">
|
2014-01-23 01:41:36 -05:00
|
|
|
<tr><td>Stream started:</td><td class="streamstats"><xsl:value-of select="stream_start" /></td></tr>
|
2008-05-09 19:14:52 -04:00
|
|
|
</xsl:if>
|
2005-08-12 16:44:38 -04:00
|
|
|
<xsl:if test="bitrate">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Bitrate:</td><td class="streamstats"> <xsl:value-of select="bitrate" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="quality">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Quality:</td><td class="streamstats"> <xsl:value-of select="quality" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="video_quality">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Video Quality:</td><td class="streamstats"> <xsl:value-of select="video_quality" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="frame_size">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Framesize:</td><td class="streamstats"> <xsl:value-of select="frame_size" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="frame_rate">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Framerate:</td><td class="streamstats"> <xsl:value-of select="frame_rate" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="listeners">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Listeners (current):</td><td class="streamstats"> <xsl:value-of select="listeners" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="listener_peak">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Listeners (peak):</td><td class="streamstats"> <xsl:value-of select="listener_peak" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="genre">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Genre:</td><td class="streamstats"> <xsl:value-of select="genre" /></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="server_url">
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Stream URL:</td><td class="streamstats"> <a href="{server_url}"><xsl:value-of select="server_url" /></a></td></tr>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:if>
|
2014-01-23 01:26:05 -05:00
|
|
|
<tr><td>Currently playing:</td><td class="streamstats">
|
2005-08-12 16:44:38 -04:00
|
|
|
<xsl:if test="artist"><xsl:value-of select="artist" /> - </xsl:if><xsl:value-of select="title" /></td></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="roundbottom">
|
2014-01-23 01:26:05 -05:00
|
|
|
<img src="/corner_bottomleft.jpg" class="corner" style="display: none" alt="" />
|
2005-08-12 16:44:38 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-01-23 01:26:05 -05:00
|
|
|
<p><br /></p>
|
2005-08-12 16:44:38 -04:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<h3><xsl:value-of select="@mount" /> - Not Connected</h3>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
|
|
|
|
</xsl:for-each>
|
2014-01-23 01:26:05 -05:00
|
|
|
<p><xsl:text disable-output-escaping="yes">&</xsl:text>nbsp;</p>
|
2005-08-12 16:44:38 -04:00
|
|
|
|
|
|
|
|
2014-01-23 01:26:05 -05:00
|
|
|
<div class="poster">Support icecast development at <a class="nav" href="http://www.icecast.org">www.icecast.org</a></div>
|
2005-08-12 16:44:38 -04:00
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|