mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Feature: Made player uniform
This commit is contained in:
parent
73bf0c8ca1
commit
e1aadb10d8
24
admin/includes/player.xsl
Normal file
24
admin/includes/player.xsl
Normal file
@ -0,0 +1,24 @@
|
||||
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0">
|
||||
<xsl:output method="html" doctype-system="about:legacy-compat" encoding="UTF-8" indent="yes" />
|
||||
<xsl:template name="player">
|
||||
<div>
|
||||
<ul class="playlists">
|
||||
<li><a href="{@mount}">Direct</a></li>
|
||||
<li><a href="{@mount}.m3u">M3U</a></li>
|
||||
<li><a href="{@mount}.xspf">XSPF</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Playlists section -->
|
||||
<h4>Play stream</h4>
|
||||
|
||||
<!-- Player -->
|
||||
<xsl:if test="server_type and ((server_type = 'application/ogg') or (server_type = 'audio/ogg') or (server_type = 'audio/webm'))">
|
||||
<div class="audioplayer">
|
||||
<audio controls="controls" preload="none">
|
||||
<source src="{@mount}" type="{server_type}" />
|
||||
</audio>
|
||||
</div>
|
||||
</xsl:if>
|
||||
</div>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
@ -3,6 +3,7 @@
|
||||
<!-- Import include files -->
|
||||
<xsl:include href="includes/page.xsl"/>
|
||||
<xsl:include href="includes/mountnav.xsl"/>
|
||||
<xsl:include href="includes/player.xsl"/>
|
||||
|
||||
<xsl:variable name="title">Active Mountpoints</xsl:variable>
|
||||
|
||||
@ -41,19 +42,7 @@
|
||||
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
||||
<!-- Mount nav -->
|
||||
<xsl:call-template name="mountnav" />
|
||||
<h4>Play stream</h4>
|
||||
<xsl:choose>
|
||||
<xsl:when test="authenticator">
|
||||
<a class="play" href="/auth.xsl">Auth</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a class="play" href="{@mount}.m3u">► <span>M3U</span></a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a class="play" href="{@mount}.xspf">► <span>XSPF</span></a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a class="play" href="{@mount}.vclt">► <span>VCLT</span></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="player" />
|
||||
<p><xsl:value-of select="listeners" /> Listener(s)</p>
|
||||
|
||||
<!-- Mount Authentication -->
|
||||
|
@ -3,6 +3,7 @@
|
||||
<!-- Import include files -->
|
||||
<xsl:include href="includes/page.xsl"/>
|
||||
<xsl:include href="includes/mountnav.xsl"/>
|
||||
<xsl:include href="includes/player.xsl"/>
|
||||
|
||||
<xsl:variable name="title">Server status</xsl:variable>
|
||||
|
||||
@ -73,19 +74,7 @@
|
||||
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
||||
<!-- Mount nav -->
|
||||
<xsl:call-template name="mountnav" />
|
||||
<h4>Play stream</h4>
|
||||
<xsl:choose>
|
||||
<xsl:when test="authenticator">
|
||||
<a class="play" href="/auth.xsl">Auth</a>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a class="play" href="{@mount}.m3u">► <span>M3U</span></a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a class="play" href="{@mount}.xspf">► <span>XSPF</span></a>
|
||||
<xsl:text> </xsl:text>
|
||||
<a class="play" href="{@mount}.vclt">► <span>VCLT</span></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="player" />
|
||||
<h4>Further information</h4>
|
||||
<table class="table-block">
|
||||
<thead>
|
||||
|
@ -1,6 +1,7 @@
|
||||
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version = "1.0" xmlns="http://www.w3.org/1999/xhtml">
|
||||
<xsl:output omit-xml-declaration="no" method="xml" 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" />
|
||||
<xsl:include href="includes/web-page.xsl"/>
|
||||
<xsl:include href="includes/player.xsl"/>
|
||||
<xsl:variable name="title">Status</xsl:variable>
|
||||
<xsl:template name="content">
|
||||
<xsl:text disable-output-escaping="yes">
|
||||
@ -21,23 +22,7 @@
|
||||
<xsl:when test="listeners">
|
||||
<section class="box">
|
||||
<h3 class="box_title">Mountpoint <code><xsl:value-of select="@mount" /></code></h3>
|
||||
<ul class="playlists">
|
||||
<li><a href="{@mount}">Direct</a></li>
|
||||
<li><a href="{@mount}.m3u">M3U</a></li>
|
||||
<li><a href="{@mount}.xspf">XSPF</a></li>
|
||||
</ul>
|
||||
|
||||
<!-- Playlists section -->
|
||||
<h4>Play stream</h4>
|
||||
|
||||
<!-- Player -->
|
||||
<xsl:if test="server_type and ((server_type = 'application/ogg') or (server_type = 'audio/ogg') or (server_type = 'audio/webm'))">
|
||||
<div class="audioplayer">
|
||||
<audio controls="controls" preload="none">
|
||||
<source src="{@mount}" type="{server_type}" />
|
||||
</audio>
|
||||
</div>
|
||||
</xsl:if>
|
||||
<xsl:call-template name="player" />
|
||||
|
||||
<!-- Stream info and stats -->
|
||||
<h4>Further information</h4>
|
||||
|
Loading…
Reference in New Issue
Block a user