diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 19:27:09 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 19:27:09 +0100 |
commit | bdfebadb0d8f241dea056417cb14ce314c0c4ae9 (patch) | |
tree | 5cea72f3abe8fc31b28762fa6abc602e6fecbae2 /bin/jsonapi.php | |
parent | 0288e7e23ea7aea31727780b6cfebb0baab87abc (diff) | |
download | istreamdev-bdfebadb0d8f241dea056417cb14ce314c0c4ae9.tar.gz istreamdev-bdfebadb0d8f241dea056417cb14ce314c0c4ae9.tar.bz2 |
Generate video logo and print info
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-x | bin/jsonapi.php | 12 |
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(); |