diff options
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); +} ?> |