summaryrefslogtreecommitdiff
path: root/includes/inc_streaming.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/inc_streaming.php')
-rwxr-xr-xincludes/inc_streaming.php63
1 files changed, 63 insertions, 0 deletions
diff --git a/includes/inc_streaming.php b/includes/inc_streaming.php
new file mode 100755
index 0000000..9da377f
--- /dev/null
+++ b/includes/inc_streaming.php
@@ -0,0 +1,63 @@
+<?php
+
+global $vdrstreamdev, $quality;
+
+// Get $session if we are not directly included from startstream
+if ($session == "")
+ $session = $_REQUEST['session'];
+
+$ram = "ram/" .$session ."/";
+
+// Get current stream info
+list($type, $realname, $title, $desc, $mode, $category, $url, $mediapath, $subdir) = readinfostream($session);
+
+print "<body onorientationchange=\"updateOrientation();\" onload=\"ajax();\">\r\n";
+
+print "<div id=\"topbar\" class=\"transparent\">\r\n";
+print "<div id=\"leftnav\">\r\n";
+print "<a href=\"javascript:sendForm('stopstream');\">Stop Stream</a></div>\r\n";
+print "<div id=\"title\">iStreamdev</div>\r\n";
+print "</div>\r\n";
+
+print "<div id=\"content\">\r\n";
+print " <span class=\"graytitle\">Now streaming</span>\r\n";
+
+// Print the right logo
+print " <ul class=\"pageitem\">\r\n";
+
+$logopath=$ram ."/logo.png";
+$logowidth = mediagetwidth($logopath);
+print " <center><video id=\"videofeed\" width=\"{$logowidth}\" poster=\"{$logopath}\" /></center>\r\n";
+
+print " </ul>\r\n";
+
+print " <ul class=\"pageitem\">\r\n";
+print " <li class=\"textbox\"><span class=\"header\">{$realname}</span><p><strong>{$title}</strong>\r\n";
+print " <br>{$desc}</p></li></ul>\r\n";
+
+print " <ul class=\"pageitem\">\r\n";
+print " <li id=\"modetext\" class=\"textbox\"><span class=\"header\">Mode</span>\r\n";
+print " <p id='streamtitle'>{$mode}</p></li></ul>\r\n";
+
+print " </div>\r\n";
+
+print " <form name=\"stopstream\" id=\"stopstream\" method=\"post\" action=\"index.php\">";
+print " <input name=\"action\" type=\"hidden\" id=\"action\" value=\"stopstream\" />";
+print " <input name=\"type\" type=\"hidden\" id=\"type\" value={$type} />";
+switch ($type)
+{
+ case 1:
+ print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$realname}\" />";
+ break;
+ case 3:
+ print " <input name=\"mediapath\" type=\"hidden\" id=\"mediapath\" value=\"{$mediapath}\" />\r\n";
+ print " <input name=\"subdir\" type=\"hidden\" id=\"subdir\" value=\"{$subdir}\" />\r\n";
+ // NO BREAK
+ case 2:
+ print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$url}\" />";
+ break;
+
+}
+
+print " </form>\r\n";
+?>