mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
25 lines
814 B
XML
25 lines
814 B
XML
<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="content-type and ((content-type = 'application/ogg') or (content-type = 'audio/ogg') or (content-type = 'audio/webm'))">
|
|
<div class="audioplayer">
|
|
<audio controls="controls" preload="none">
|
|
<source src="{@mount}" type="{content-type}" />
|
|
</audio>
|
|
</div>
|
|
</xsl:if>
|
|
</div>
|
|
</xsl:template>
|
|
</xsl:stylesheet>
|