aboutsummaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/assemblies/switcher/miniroom-audio.phtml12
-rw-r--r--template/assemblies/switcher/miniroom-video.phtml40
-rw-r--r--template/room.phtml52
3 files changed, 85 insertions, 19 deletions
diff --git a/template/assemblies/switcher/miniroom-audio.phtml b/template/assemblies/switcher/miniroom-audio.phtml
new file mode 100644
index 0000000..f96fb71
--- /dev/null
+++ b/template/assemblies/switcher/miniroom-audio.phtml
@@ -0,0 +1,12 @@
+<h3>Directlinks</h3>
+<ul>
+ <? foreach(array('mp3', 'ogg', 'opus') as $iter): ?>
+ <li>
+ <span class="label filetype"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_stream('audio', $room, $iter))?>">
+ <span class="fa fa-volume-up"></span>
+ live podcast
+ </a>
+ </li>
+ <? endforeach ?>
+</ul>
diff --git a/template/assemblies/switcher/miniroom-video.phtml b/template/assemblies/switcher/miniroom-video.phtml
new file mode 100644
index 0000000..619d50b
--- /dev/null
+++ b/template/assemblies/switcher/miniroom-video.phtml
@@ -0,0 +1,40 @@
+<h3>Formats</h3>
+<ul>
+ <? foreach(array('hq', 'lq') as $iter): ?>
+ <li>
+ <span class="label filetype"><?=h(strtoupper($iter))?></span>
+ <a href="<?=h(link_player($room, $iter))?>">
+ <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"><?=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">HQ</span>
+ <a href="<?=h(link_stream('webm', $room, 'webm'))?>">
+ <span class="fa fa-video-camera"></span>
+ live video-podcast
+ </a>
+ </li>
+</ul>
diff --git a/template/room.phtml b/template/room.phtml
index 6c26730..78d470d 100644
--- a/template/room.phtml
+++ b/template/room.phtml
@@ -2,7 +2,13 @@
<h1><?=h($title)?></h1>
<ul class="nav nav-tabs nav-justified">
- <? foreach(array('video', 'audio', 'slides') as $iter): ?>
+ <?
+ if($miniroom)
+ $tabs = array('video', 'audio', 'slides');
+ else
+ $tabs = array('video', 'audio');
+ ?>
+ <? foreach($tabs as $iter): ?>
<li
<? if($type == $iter):?>class="active"<? endif ?>
>
@@ -17,27 +23,35 @@
<? include("assemblies/player/$type.phtml") ?>
</div>
- <ul class="nav nav-tabs nav-justified" role="tablist">
- <li class="active">
- <a href="#switcher" role="tab" data-toggle="tab">Formats</a>
- </li>
- <li>
- <a href="#irc" role="tab" data-toggle="tab">IRC</a>
- </li>
- <li>
- <a href="#program" role="tab" data-toggle="tab">Program</a>
- </li>
- </ul>
+ <? if(!$miniroom): ?>
+ <ul class="nav nav-tabs nav-justified" role="tablist">
+ <li class="active">
+ <a href="#switcher" role="tab" data-toggle="tab">Formats</a>
+ </li>
+ <li>
+ <a href="#irc" role="tab" data-toggle="tab">IRC</a>
+ </li>
+ <li>
+ <a href="#program" role="tab" data-toggle="tab">Program</a>
+ </li>
+ </ul>
+ <? endif ?>
<div class="tab-content">
<div class="tab-pane active" id="switcher">
- <? include("assemblies/switcher/$type.phtml") ?>
- </div>
- <div class="tab-pane" id="irc">
- <? include("assemblies/irc.phtml") ?>
- </div>
- <div class="tab-pane" id="program">
- <? include("assemblies/program.phtml") ?>
+ <? if($miniroom): ?>
+ <? include("assemblies/switcher/miniroom-$type.phtml") ?>
+ <? else: ?>
+ <? include("assemblies/switcher/$type.phtml") ?>
+ <? endif ?>
</div>
+ <? if(!$miniroom): ?>
+ <div class="tab-pane" id="irc">
+ <? include("assemblies/irc.phtml") ?>
+ </div>
+ <div class="tab-pane" id="program">
+ <? include("assemblies/program.phtml") ?>
+ </div>
+ <? endif ?>
</div>
</div>