aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher/miniroom-video.phtml
diff options
context:
space:
mode:
authorMaZderMind2014-11-14 12:47:54 +0100
committerMaZderMind2014-11-14 12:47:54 +0100
commit3963871e8f6901c1477d22d534d6e130dbf61822 (patch)
treee7f59d726edc19bb2291596f6c3ea78f51adf7df /template/assemblies/switcher/miniroom-video.phtml
parentbdb6996709369e56b0bae93525fe60a0fdb5124c (diff)
match stream names, urls and bitrates
see https://c3voc.de/wiki/31c3:cdn and https://c3voc.de/wiki/intern:31c3:cdn
Diffstat (limited to '')
-rw-r--r--template/assemblies/switcher/miniroom-video.phtml31
1 files changed, 5 insertions, 26 deletions
diff --git a/template/assemblies/switcher/miniroom-video.phtml b/template/assemblies/switcher/miniroom-video.phtml
index b03561e..ace02bc 100644
--- a/template/assemblies/switcher/miniroom-video.phtml
+++ b/template/assemblies/switcher/miniroom-video.phtml
@@ -1,37 +1,16 @@
-<h3>Formats</h3>
+<h3>Directlinks</h3>
<ul>
- <? foreach(array('hq', 'lq') as $iter): ?>
+<? foreach(array('rtmp', 'hls') as $protocol): ?>
<li>
- <span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
- <a href="<?=h(link_player($room, $iter))?>">
+ <span class="label filetype" title="<?=h(format_text('sd'))?>"><?=h($protocol)?></span>
+ <a href="<?=h(link_stream($protocol, $room, 'sd'))?>">
<span class="fa fa-video-camera"></span>
live video-podcast
</a>
</li>
- <? endforeach ?>
-</ul>
-
-<hr />
-
-<? foreach(array('rtmp', 'hls') as $protocol): ?>
- <h3>Directlinks (<?=h(strtoupper($protocol))?>)</h3>
- <ul>
- <? foreach(array('hq', 'lq') as $iter): ?>
- <li>
- <span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
- <a href="<?=h(link_stream($protocol, $room, $iter))?>">
- <span class="fa fa-video-camera"></span>
- live video-podcast
- </a>
- </li>
- <? endforeach ?>
- </ul>
<? endforeach ?>
-
-<h3>Directlinks (WebM)</h3>
-<ul>
<li>
- <span class="label filetype" title="<?=h(format_text('webm'))?>">HQ</span>
+ <span class="label filetype" title="<?=h(format_text('webm'))?>">WebM</span>
<a href="<?=h(link_stream('webm', $room, 'webm'))?>">
<span class="fa fa-video-camera"></span>
live video-podcast