From 737a6402836788d359fcd99bef93ae059c085577 Mon Sep 17 00:00:00 2001 From: TheTroll Date: Wed, 17 Mar 2010 14:06:08 +0100 Subject: Session start/stop implemented --- bin/jsonapi.php | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'bin/jsonapi.php') diff --git a/bin/jsonapi.php b/bin/jsonapi.php index 35ec623..a8aa82e 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -73,5 +73,29 @@ function startBroadcast($type, $url, $mode) return json_encode($ret); } +function stopBroadcast($session) +{ + $ret = array(); + + $ret = sessiondelete($session); + + return json_encode($ret); +} + +function getStreamInfo($session) +{ + $ret = array(); + + $ret['stream'] = sessiongetinfo($session); + + return json_encode($ret); +} + +function getStreamStatus($session) +{ + $ret = sessiongetstatus($session); + + return json_encode($ret); +} ?> -- cgit v1.2.3