summaryrefslogtreecommitdiff
path: root/bin/jsonapi.php
diff options
context:
space:
mode:
authorTheTroll <trolldev@gmail.com>2010-03-17 18:23:56 +0100
committerTheTroll <trolldev@gmail.com>2010-03-17 18:23:56 +0100
commit5a82ce8d05eb30148d8079aed01c503c73dd58d6 (patch)
treee410b38831fe03b68a84b136cf09505ba1d55add /bin/jsonapi.php
parent9f94e565988c2cd5bf765b4d21584b1ac2fcb64f (diff)
downloadistreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.gz
istreamdev-5a82ce8d05eb30148d8079aed01c503c73dd58d6.tar.bz2
File browsing
Diffstat (limited to 'bin/jsonapi.php')
-rwxr-xr-xbin/jsonapi.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php
index dcc3dd4..eba9725 100755
--- a/bin/jsonapi.php
+++ b/bin/jsonapi.php
@@ -7,8 +7,8 @@ function getGlobals()
$ret = array();
$ret['streamdev_server'] = $vdrstreamdev;
$ret['rec_path'] = $vdrrecpath;
- $ret['video_path'] = "/mnt/media/Video/";
- $ret['audio_path'] = "/mnt/media/Music/";
+ $ret['video_path'] = "/home/storage/Foot/";
+ $ret['audio_path'] = "/home/www/mp3/";
return json_encode($ret);
}
@@ -113,5 +113,12 @@ function getRunningSessions()
}
+function browseFolder($path)
+{
+ $ret = array();
+ $ret['list'] = filesgetlisting($path);
+
+ return json_encode($ret);
+}
?>