From 438912c0c4a4075a5cd74cf9689451c9df4bbe34 Mon Sep 17 00:00:00 2001 From: Alib Date: Mon, 15 Mar 2010 17:56:22 +0100 Subject: New Jquery branch. Initial development version for istreamdev 1.0 --- streamstatus.php | 47 ----------------------------------------------- 1 file changed, 47 deletions(-) delete mode 100755 streamstatus.php (limited to 'streamstatus.php') diff --git a/streamstatus.php b/streamstatus.php deleted file mode 100755 index 3189afe..0000000 --- a/streamstatus.php +++ /dev/null @@ -1,47 +0,0 @@ -\n"; - -echo "\n"; - -$session = $_REQUEST['session']; - -exec('echo ' .$session .' >/tmp/aa'); - -// First check that we are allowed to create a new encoding process -if (($session == "") || !count(glob('ram/' .$session))) -{ - $nbencprocess = exec("find ram/ -name segmenter.pid | wc | awk '{ print $1 }'"); - - if ($nbencprocess >= $maxencodingprocesses) - echo "errorError: maximun number of sessions reached\n"; - else - echo "errorError: cannot create session\n"; -} -else -{ - $cnt = 0; - while ( ( count(glob('ram/' .$session . '/*.ts')) < 2 ) && ( $cnt < 25 ) ) - { - // wait for stream available - sleep(1); - $cnt++; - } - - if ( count(glob('ram/' .$session . '/*.ts')) < 2 ) - echo "errorError: encoding did not start correctly\n"; - else - echo "ok\n"; -} - -echo "\n"; - -?> -- cgit v1.2.3