From bdfebadb0d8f241dea056417cb14ce314c0c4ae9 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 19:27:09 +0100 Subject: Generate video logo and print info --- bin/jsonapi.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin/jsonapi.php') 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(); -- cgit v1.2.3