2020-10-09 05:36:03 -04:00
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
2020-10-09 06:26:18 -04:00
|
|
|
<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>
|
2020-10-01 10:00:46 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- Playlists section -->
|
|
|
|
<h4>Play stream</h4>
|
2020-10-01 10:00:46 -04:00
|
|
|
|
2020-10-09 06:26:18 -04:00
|
|
|
<!-- 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>
|
2020-10-01 10:00:46 -04:00
|
|
|
</xsl:stylesheet>
|