aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies
diff options
context:
space:
mode:
authorMaZderMind2014-10-19 13:44:34 +0200
committerMaZderMind2014-10-19 13:44:34 +0200
commitce98e5359797c26be23c5db9a786fbd1e58acc7d (patch)
treeccad65d7be7cc4224fe7415b015bd294528d7807 /template/assemblies
parente94c9bcce4dffc0bb1bbf64be9dac4ec4925b554 (diff)
direct links to video formats
Diffstat (limited to '')
-rw-r--r--template/assemblies/players/audio.phtml (renamed from template/players/audio.phtml)1
-rw-r--r--template/assemblies/players/slides.phtml (renamed from template/players/slides.phtml)1
-rw-r--r--template/assemblies/players/video.phtml (renamed from template/players/video.phtml)9
-rw-r--r--template/assemblies/switcher/video.phtml23
4 files changed, 28 insertions, 6 deletions
diff --git a/template/players/audio.phtml b/template/assemblies/players/audio.phtml
index e3c85c9..f9993c1 100644
--- a/template/players/audio.phtml
+++ b/template/assemblies/players/audio.phtml
@@ -1,4 +1,5 @@
<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
'room' => $room,
'language' => $language,
'format' => $format
diff --git a/template/players/slides.phtml b/template/assemblies/players/slides.phtml
index e3c85c9..f9993c1 100644
--- a/template/players/slides.phtml
+++ b/template/assemblies/players/slides.phtml
@@ -1,4 +1,5 @@
<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
'room' => $room,
'language' => $language,
'format' => $format
diff --git a/template/players/video.phtml b/template/assemblies/players/video.phtml
index e3c85c9..ca0e87b 100644
--- a/template/players/video.phtml
+++ b/template/assemblies/players/video.phtml
@@ -1,10 +1,10 @@
<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
'room' => $room,
'language' => $language,
'format' => $format
), true)?></pre>
-<?/*
<video
autoplay="autoplay"
controls="controls"
@@ -15,19 +15,19 @@
>
<source
data-plugin-type="flash"
- src="rtmp://rtmp.streaming.media.ccc.de:1935/stream/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>"
+ src="<?=h(link_stream('rtmp', $room, $format, $translated))?>"
title="h.H264 (RTMP)"
type="video/rtmp"
/>
<source
data-plugin-type="native"
- src="http://hls.streaming.media.ccc.de/hls/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>.m3u8"
+ src="<?=h(link_stream('hls', $room, $format, $translated))?>"
title="h.264 (HLS)"
type="application/vnd.apple.mpegURL"
/>
<object
- data="static/flashmediaelement.swf"
+ data="/assets/js/lib/flashmediaelement.swf"
type="application/x-shockwave-flash"
width="<?=h($width)?>"
height="<?=h($height)?>"
@@ -35,4 +35,3 @@
<param name="allowFullScreen" value="true">
</object>
</video>
-*/?>
diff --git a/template/assemblies/switcher/video.phtml b/template/assemblies/switcher/video.phtml
index ccfbaef..6ad26c8 100644
--- a/template/assemblies/switcher/video.phtml
+++ b/template/assemblies/switcher/video.phtml
@@ -1,4 +1,4 @@
-<h3>Video</h3>
+<h3>Formate</h3>
<ul>
<? foreach(array('hd', 'hq', 'lq') as $iter): ?>
<li>
@@ -14,3 +14,24 @@
</li>
<? endforeach ?>
</ul>
+
+<hr />
+
+<? foreach(array('rtmp', 'hls') as $protocol): ?>
+ <h3>Direktlinks (<?=h(strtoupper($protocol))?>)</h3>
+ <ul>
+ <? foreach(array('hd', 'hq', 'lq') as $iter): ?>
+ <li>
+ <span class="label filetype"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_stream($protocol, $room, $iter))?>">
+ <span class="fa fa-flag-o"></span>
+ native
+ </a>
+ <a href="<?=h(link_stream($protocol, $room, $iter, true))?>">
+ <span class="fa fa-flag"></span>
+ translated
+ </a>
+ </li>
+ <? endforeach ?>
+ </ul>
+<? endforeach ?>