summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlib <aliboba@free.fr>2010-03-21 01:17:42 +0100
committerAlib <aliboba@free.fr>2010-03-21 01:17:42 +0100
commit580682c2f6b6a4e0d8185fdf54248573178507f6 (patch)
tree26fd22f353234c9a922ccb8c8459ca7144993c44 /bin
parent2d1a22a6491a66f7dde69d2a348374c4a689bcca (diff)
downloadistreamdev-580682c2f6b6a4e0d8185fdf54248573178507f6.tar.gz
istreamdev-580682c2f6b6a4e0d8185fdf54248573178507f6.tar.bz2
generate thumb before starting encoding
prevent click on links while animating.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/session.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/session.php b/bin/session.php
index 09f7fc8..2a149d3 100755
--- a/bin/session.php
+++ b/bin/session.php
@@ -33,6 +33,12 @@ function sessioncreate($type, $url, $mode)
// Create session
exec('mkdir ../ram/' .$session);
+ // Create logo
+ if ($type == 'vid')
+ generatelogo($type, $url, '../ram/' .$session .'/thumb.png');
+ else
+ generatelogo($type, $channame, '../ram/' .$session .'/thumb.png');
+ // Start encoding
$url = str_replace("\\'", "'", $url);
switch ($type)
{
@@ -71,12 +77,6 @@ function sessioncreate($type, $url, $mode)
// Write streaminfo
writeinfostream($session, $type, $mode, $url, $channame);
- // Create logo
- if ($type == 'vid')
- generatelogo($type, $url, '../ram/' .$session .'/thumb.png');
- else
- generatelogo($type, $channame, '../ram/' .$session .'/thumb.png');
-
return $session;
}