diff options
author | TheTroll <trolldev@gmail.com> | 2010-02-27 01:04:29 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-02-27 01:04:29 +0100 |
commit | 0c9414a9fecf2278d468acb1cf184e776b5a15c7 (patch) | |
tree | 4fd8140bb93e525976b3c7acde9cfb2ef3052961 /includes/inc_streaming.php | |
parent | 6d9cbb4df3b1aa89126069162dbf9f1e330b5fa6 (diff) | |
download | istreamdev-0c9414a9fecf2278d468acb1cf184e776b5a15c7.tar.gz istreamdev-0c9414a9fecf2278d468acb1cf184e776b5a15c7.tar.bz2 |
Multiple sessions support WIP
Diffstat (limited to 'includes/inc_streaming.php')
-rwxr-xr-x | includes/inc_streaming.php | 63 |
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"; +?> |