diff options
author | TheTroll <trolldev@gmail.com> | 2010-03-17 14:06:08 +0100 |
---|---|---|
committer | TheTroll <trolldev@gmail.com> | 2010-03-17 14:06:08 +0100 |
commit | 737a6402836788d359fcd99bef93ae059c085577 (patch) | |
tree | 2cb70992cf1fe452ebec552970b49e5a31cfb712 /bin/jsonapi.php | |
parent | 4e2acf476cadde8495ff3cf484a866fe8d0ba8ec (diff) | |
download | istreamdev-737a6402836788d359fcd99bef93ae059c085577.tar.gz istreamdev-737a6402836788d359fcd99bef93ae059c085577.tar.bz2 |
Session start/stop implemented
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-x | bin/jsonapi.php | 24 |
1 files changed, 24 insertions, 0 deletions
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); +} ?> |