aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/player
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 20:47:58 +0200
committerMaZderMind2014-10-19 20:47:58 +0200
commitaa10d8d0e776506397403c2221704133d05b6e0f (patch)
tree103279962404b31fc72d9566a664fae423f15772 /template/assemblies/player
parent48d947b34e87a26ba8bdbc55861bb6cd451a3ccc (diff)
icecast/webm support
Diffstat (limited to 'template/assemblies/player')
-rw-r--r--template/assemblies/player/video.phtml11
1 files changed, 9 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