diff options
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(); |