aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--template/assemblies/player/video.phtml11
-rw-r--r--template/assemblies/switcher/video.phtml15
2 files changed, 24 insertions, 2 deletions
diff --git a/template/assemblies/player/video.phtml b/template/assemblies/player/video.phtml
index defb14d..7ff6969 100644
--- a/template/assemblies/player/video.phtml
+++ b/template/assemblies/player/video.phtml
@@ -1,16 +1,23 @@
<div style="width: 100%; height: 100%; max-width: <?=h($width)?>px; margin: 0 auto;">
<video
autoplay="autoplay"
- id="video-tag"
preload="auto"
width="<?=h($width)?>"
height="<?=h($height)?>"
style="width: 100%; height: 100%;"
>
+ <? if($format == 'hq'): ?>
+ <source
+ data-plugin-type="native"
+ src="<?=h(link_stream('icecast', $room, $format, $translated))?>"
+ title="WebM (Icecast)"
+ type="video/webm"
+ />
+ <? endif ?>
<source
data-plugin-type="flash"
src="<?=h(link_stream('rtmp', $room, $format, $translated))?>"
- title="h.H264 (RTMP)"
+ title="h.264 (RTMP)"
type="video/rtmp"
/>
<source
diff --git a/template/assemblies/switcher/video.phtml b/template/assemblies/switcher/video.phtml
index 6ad26c8..1ecf0f6 100644
--- a/template/assemblies/switcher/video.phtml
+++ b/template/assemblies/switcher/video.phtml
@@ -35,3 +35,18 @@
<? endforeach ?>
</ul>
<? endforeach ?>
+
+<h3>Direktlinks (WebM)</h3>
+<ul>
+ <li>
+ <span class="label filetype">HQ</span>
+ <a href="<?=h(link_stream('icecast', $room, 'hq'))?>">
+ <span class="fa fa-flag-o"></span>
+ native
+ </a>
+ <a href="<?=h(link_stream('icecast', $room, 'hq', true))?>">
+ <span class="fa fa-flag"></span>
+ translated
+ </a>
+ </li>
+</ul>