aboutsummaryrefslogtreecommitdiff
path: root/template/assemblies/switcher/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/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/video.phtml34
1 files changed, 21 insertions, 13 deletions
diff --git a/template/assemblies/switcher/video.phtml b/template/assemblies/switcher/video.phtml
index 7cbb2af..598f533 100644
--- a/template/assemblies/switcher/video.phtml
+++ b/template/assemblies/switcher/video.phtml
@@ -1,6 +1,6 @@
<h3>Formats</h3>
<ul>
- <? foreach(array('hd', 'hq', 'lq') as $iter): ?>
+ <? foreach(array('hd', 'sd') as $iter): ?>
<li>
<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
<a href="<?=h(link_player($room, $iter))?>">
@@ -20,7 +20,13 @@
<? foreach(array('rtmp', 'hls') as $protocol): ?>
<h3>Directlinks (<?=h(strtoupper($protocol))?>)</h3>
<ul>
- <? foreach(array('hd', 'hq', 'lq') as $iter): ?>
+ <?
+ if($protocol == 'hls')
+ $formats = array('auto', 'hd', 'sd');
+ else
+ $formats = array('hd', 'sd');
+ ?>
+ <? foreach($formats as $iter): ?>
<li>
<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($iter))?></span>
<a href="<?=h(link_stream($protocol, $room, $iter))?>">
@@ -38,15 +44,17 @@
<h3>Directlinks (WebM)</h3>
<ul>
- <li>
- <span class="label filetype" title="<?=h(format_text('webm'))?>">HQ</span>
- <a href="<?=h(link_stream('webm', $room, 'webm'))?>">
- <span class="fa fa-flag-o"></span>
- native
- </a>
- <a href="<?=h(link_stream('webm', $room, 'webm', true))?>">
- <span class="fa fa-flag"></span>
- translated
- </a>
- </li>
+ <? foreach(array('hd', 'sd') as $iter): ?>
+ <li>
+ <span class="label filetype" title="<?=h(format_text('webm'))?>"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_stream('webm', $room, $iter))?>">
+ <span class="fa fa-flag-o"></span>
+ native
+ </a>
+ <a href="<?=h(link_stream('webm', $room, $iter, true))?>">
+ <span class="fa fa-flag"></span>
+ translated
+ </a>
+ </li>
+ <? endforeach ?>
</ul>