From 7cd0564c4336b578c78c55eb9a3d6fe7d4d12d02 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Sat, 13 Dec 2014 01:17:02 +0100
Subject: slide-stream switcher

---
 template/assemblies/switcher/slides.phtml | 19 ++++++++++++++++++-
 1 file changed, 18 insertions(+), 1 deletion(-)

(limited to 'template')

diff --git a/template/assemblies/switcher/slides.phtml b/template/assemblies/switcher/slides.phtml
index 5445a0a..401b4e7 100644
--- a/template/assemblies/switcher/slides.phtml
+++ b/template/assemblies/switcher/slides.phtml
@@ -1,7 +1,7 @@
 <h3>Slides</h3>
 <ul>
 	<li>
-		<span class="label filetype">JPG &amp; MP3</span>
+		<span class="label filetype">SLIDES</span>
 		<a href="<?=h(link_player($room, 'slides'))?>">
 			<span class="fa fa-flag-o"></span>
 			native
@@ -12,3 +12,20 @@
 		</a>
 	</li>
 </ul>
+
+<h3>Directlinks</h3>
+<ul>
+	<? foreach(array('rtmp', 'hls') as $protocol): ?>
+		<li>
+			<span class="label filetype" title="<?=h(format_text($iter))?>"><?=h(strtoupper($protocol))?></span>
+			<a href="<?=h(link_stream($protocol, $room, 'slides'))?>">
+				<span class="fa fa-flag-o"></span>
+				native
+			</a>
+			<a href="<?=h(link_stream($protocol, $room, 'slides', true))?>">
+				<span class="fa fa-flag"></span>
+				translated
+			</a>
+		</li>
+	<? endforeach ?>
+</ul>
-- 
cgit v1.2.3