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 'template/assemblies')
-rw-r--r--template/assemblies/players/audio.phtml39
-rw-r--r--template/assemblies/players/slides.phtml39
-rw-r--r--template/assemblies/players/video.phtml37
-rw-r--r--template/assemblies/switcher/video.phtml23
4 files changed, 137 insertions, 1 deletions
diff --git a/template/assemblies/players/audio.phtml b/template/assemblies/players/audio.phtml
new file mode 100644
index 0000000..f9993c1
--- /dev/null
+++ b/template/assemblies/players/audio.phtml
@@ -0,0 +1,39 @@
+<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
+ 'room' => $room,
+ 'language' => $language,
+ 'format' => $format
+), true)?></pre>
+
+<?/*
+<video
+ autoplay="autoplay"
+ controls="controls"
+ id="video-tag"
+ preload="auto"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+>
+ <source
+ data-plugin-type="flash"
+ src="rtmp://rtmp.streaming.media.ccc.de:1935/stream/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>"
+ 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"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="static/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="allowFullScreen" value="true">
+ </object>
+</video>
+*/?>
diff --git a/template/assemblies/players/slides.phtml b/template/assemblies/players/slides.phtml
new file mode 100644
index 0000000..f9993c1
--- /dev/null
+++ b/template/assemblies/players/slides.phtml
@@ -0,0 +1,39 @@
+<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
+ 'room' => $room,
+ 'language' => $language,
+ 'format' => $format
+), true)?></pre>
+
+<?/*
+<video
+ autoplay="autoplay"
+ controls="controls"
+ id="video-tag"
+ preload="auto"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+>
+ <source
+ data-plugin-type="flash"
+ src="rtmp://rtmp.streaming.media.ccc.de:1935/stream/<?=h($room)?>_<?=h($language)?>_<?=h($format)?>"
+ 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"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="static/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <param name="allowFullScreen" value="true">
+ </object>
+</video>
+*/?>
diff --git a/template/assemblies/players/video.phtml b/template/assemblies/players/video.phtml
new file mode 100644
index 0000000..ca0e87b
--- /dev/null
+++ b/template/assemblies/players/video.phtml
@@ -0,0 +1,37 @@
+<pre><?=print_r(array(
+ 'file' => basename(__FILE__),
+ 'room' => $room,
+ 'language' => $language,
+ 'format' => $format
+), true)?></pre>
+
+<video
+ autoplay="autoplay"
+ controls="controls"
+ id="video-tag"
+ preload="auto"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+>
+ <source
+ data-plugin-type="flash"
+ src="<?=h(link_stream('rtmp', $room, $format, $translated))?>"
+ title="h.H264 (RTMP)"
+ type="video/rtmp"
+ />
+ <source
+ data-plugin-type="native"
+ src="<?=h(link_stream('hls', $room, $format, $translated))?>"
+ title="h.264 (HLS)"
+ type="application/vnd.apple.mpegURL"
+ />
+
+ <object
+ data="/assets/js/lib/flashmediaelement.swf"
+ type="application/x-shockwave-flash"
+ width="<?=h($width)?>"
+ height="<?=h($height)?>"
+ >
+ <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 ?>