diff options
author | root <root@mediaserver.Belkin> | 2010-02-18 17:48:07 +0100 |
---|---|---|
committer | root <root@mediaserver.Belkin> | 2010-02-18 17:48:07 +0100 |
commit | ee59e19183a839784e6ac30ed639548e4f36615e (patch) | |
tree | ccb25718c32934f41368fa46dbc6083aae533fa6 /includes/inc_stream.php | |
parent | 1f5be309fb11e8fa2070c186efe6037a03a9b572 (diff) | |
download | istreamdev-ee59e19183a839784e6ac30ed639548e4f36615e.tar.gz istreamdev-ee59e19183a839784e6ac30ed639548e4f36615e.tar.bz2 |
Second rev with media streaming. Now it works for all video types.
And some more bugfixes
Committer: Alib <aliboba@free.fr>
modified: HISTORY
modified: config.php
modified: css/style.css
modified: includes/inc_media.php
modified: includes/inc_rec.php
modified: includes/inc_stream.php
modified: includes/inc_vdr.php
modified: includes/include.php
modified: istream.sh
Diffstat (limited to 'includes/inc_stream.php')
-rwxr-xr-x | includes/inc_stream.php | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/includes/inc_stream.php b/includes/inc_stream.php index b5df588..da191fa 100755 --- a/includes/inc_stream.php +++ b/includes/inc_stream.php @@ -21,15 +21,17 @@ if (infostreamexist()) // Print the right logo print " <ul class=\"pageitem\">\r\n"; - if ($type <= 2) - { - if (!file_exists('logos/'.$realname.'.png')) - print " <center><video id=\"videofeed\" poster=\"logos/nologo2.png\" width='80' height='80' /></center>\r\n"; - else - print " <center><video id=\"videofeed\" poster=\"logos/{$realname}.png\" width='80' height='80' /></center>\r\n"; - } + + if ($type == 3) + $logopath = "ram/stream-tb.png"; else + $logopath = "logos/" .$realname .".png"; + + if (!file_exists($logopath)) print " <center><video id=\"videofeed\" poster=\"logos/nologo2.png\" width='80' height='80' /></center>\r\n"; + else + print " <center><video id=\"videofeed\" poster=\"{$logopath}\" width='80' height='80' /></center>\r\n"; + print " </ul>\r\n"; print " <ul class=\"pageitem\">\r\n"; @@ -52,7 +54,7 @@ if (infostreamexist()) print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$realname}\" />"; break; case 2: - case 3: + case 3: print " <input name=\"name\" type=\"hidden\" id=\"name\" value=\"{$url}\" />"; break; @@ -79,9 +81,8 @@ else break; // Media case 3: - $realname = $name; - $title = ""; - $desc = ""; + list($title, $desc) = mediagetinfostream($name); + $realname = basename($name); break; default: $realname = ""; @@ -106,18 +107,18 @@ else print " <span class=\"graytitle\">Select stream mode</span>\r\n"; + // Print the right logo print " <ul class=\"pageitem\">\r\n"; - // Print the right logo - if ($type <= 2) - { - if (!file_exists('logos/'.$realname.'.png')) - print " <center><img src=\"logos/nologo2.png\"></img></center>\r\n"; - else - print " <center><img src=\"logos/{$realname}.png\"></img></center>\r\n"; - } + if ($type == 3) + $logopath = "ram/stream-tb.png"; else + $logopath = "logos/" .$realname .".png"; + + if (!file_exists($logopath)) print " <center><img src=\"logos/nologo2.png\"></img></center>\r\n"; + else + print " <center><img src=\"{$logopath}\"></img></center>\r\n"; print " </ul>\r\n"; |