summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 19:27:09 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 19:27:09 +0100
commitbdfebadb0d8f241dea056417cb14ce314c0c4ae9 (patch)
tree5cea72f3abe8fc31b28762fa6abc602e6fecbae2 /bin/jsonapi.php
parent0288e7e23ea7aea31727780b6cfebb0baab87abc (diff)
downloadistreamdev-bdfebadb0d8f241dea056417cb14ce314c0c4ae9.tar.gz
istreamdev-bdfebadb0d8f241dea056417cb14ce314c0c4ae9.tar.bz2
Generate video logo and print info
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php
index 0c3b350..0f922c2 100755
--- a/bin/jsonapi.php
+++ b/bin/jsonapi.php
@@ -75,6 +75,18 @@ function getRecInfo($rec)
return json_encode($ret);
}
+function getVidInfo($file)
+{
+ $ret = array();
+
+ // Generate logo
+ generatelogo('vid', $file, '../ram/temp-logo.png');
+
+ $ret['program'] = mediagetinfostream($file);
+
+ return json_encode($ret);
+}
+
function startBroadcast($type, $url, $mode)
{
$ret = array();