diff options
author | Alib <aliboba@free.fr> | 2010-03-23 20:03:48 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-23 20:03:48 +0100 |
commit | 5c1a035c35ab2f444b6fb67a475bc772d50edde2 (patch) | |
tree | f2f9a28ce9d55266eb2262fc48ab1cfd047f34b4 | |
parent | 0962608e084f45b050e7ae75d0471f356f4302f7 (diff) | |
parent | 85b5a9f4c49db6dbbe282e9e8ab60fbc074d6a52 (diff) | |
download | istreamdev-5c1a035c35ab2f444b6fb67a475bc772d50edde2.tar.gz istreamdev-5c1a035c35ab2f444b6fb67a475bc772d50edde2.tar.bz2 |
Merge branch 'jquery' of projects.vdr-developer.org:istreamdev into jquery
-rwxr-xr-x | bin/jsonapi.php | 15 | ||||
-rwxr-xr-x | config_default.php | 9 |
2 files changed, 13 insertions, 11 deletions
diff --git a/bin/jsonapi.php b/bin/jsonapi.php index e825fec..a567808 100755 --- a/bin/jsonapi.php +++ b/bin/jsonapi.php @@ -2,24 +2,23 @@ function getGlobals() { - global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource, $vdrenabled, $mediaenabled; + global $vdrstreamdev, $vdrrecpath, $mediasource, $videosource, $audiosource; + global $enablevdr, $enablemediavideo, $enablemediaaudio; $ret = array(); - if ($vdrenabled) + if ($enablevdr) $ret['streamdev_server'] = $vdrstreamdev; else $ret['streamdev_server'] = ""; $ret['rec_path'] = $vdrrecpath; - if ($mediaenabled) - { + if ($enablemediavideo) $ret['video_path'] = $videosource; - $ret['audio_path'] = $audiosource; - } else - { $ret['video_path'] = ""; + if ($enablemediaaudio) + $ret['audio_path'] = $audiosource; + else $ret['audio_path'] = ""; - } return json_encode($ret); } diff --git a/config_default.php b/config_default.php index 31badb0..df1926f 100755 --- a/config_default.php +++ b/config_default.php @@ -1,11 +1,15 @@ <?php + // Enable/disable features + $enablevdr=1; // VDR feature + $enablemediavideo=1; // Video streaming + $enablemediaaudio=1; // Audio streaming + // Http configuration $user = 'istreamdev'; // Login $pass = 'iguest'; // Password - $httppath = '/istreamdev/'; // Absolute path to the index.php file. //Don't put http://yourdomain !! + $httppath = '/istreamdev/'; // Absolute path to the index.php file. Don't put http://yourdomain !! // VDR configuration - $vdrenabled=1; // Enable/disable VDR feature $vdrchannels='/etc/vdr/channels.conf'; // VDR channel list $svdrpport=2001; // SVDRP port $svdrpip='127.0.0.1'; // SVDRP ip @@ -13,7 +17,6 @@ $vdrrecpath='/video/'; //VDR recording directory // Media configuration - $mediaenabled=1; //Enable/disable media streaming feature $videotypes='avi mkv ts mov mp4 wmv flv mpg mpeg mpeg2 mpv '; // Supported video extensions (must finish with a space) $audiotypes='mp3 aac wav '; // Supported audio extensions $videosource = '/mnt/media/movies/'; // Video files directory |