summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 14:06:08 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 14:06:08 +0100
commit737a6402836788d359fcd99bef93ae059c085577 (patch)
tree2cb70992cf1fe452ebec552970b49e5a31cfb712 /bin/jsonapi.php
parent4e2acf476cadde8495ff3cf484a866fe8d0ba8ec (diff)
downloadistreamdev-737a6402836788d359fcd99bef93ae059c085577.tar.gz
istreamdev-737a6402836788d359fcd99bef93ae059c085577.tar.bz2
Session start/stop implemented
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php24
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);
+}
?>