summaryrefslogtreecommitdiff
path: root/httpresource.c
diff options
context:
space:
mode:
authorthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
committerthlo <smarttv640@gmail.com>2013-09-01 21:09:15 +0200
commitb67fdbd19781ea9a5c00e5ce2332ae80aa4e2647 (patch)
tree1e73bb20f1ac91725dfd1e0f124c419c1fe7a391 /httpresource.c
parentd9ccb92d336bb36a90b3ab9ace2d221644442d43 (diff)
downloadvdr-plugin-smarttvweb-b67fdbd19781ea9a5c00e5ce2332ae80aa4e2647.tar.gz
vdr-plugin-smarttvweb-b67fdbd19781ea9a5c00e5ce2332ae80aa4e2647.tar.bz2
New enable flag for RecCmds and new Port parameter in smarttvweb.conf. Bug fixes.
Diffstat (limited to 'httpresource.c')
-rwxr-xr-xhttpresource.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/httpresource.c b/httpresource.c
index fcb7f82..24645bf 100755
--- a/httpresource.c
+++ b/httpresource.c
@@ -352,6 +352,14 @@ int cHttpResource::processRequest() {
}
//thlo for testing purpose
+/*
+ if (mPath.compare("/modifyTimer") == 0) {
+ mResponse = new cResponseMemBlk(this);
+ ((cResponseMemBlk*)mResponse)->receiveModTimerReq();
+ return OKAY;
+ }
+*/
+ //thlo for testing purpose
if (mPath.compare("/addTimer") == 0) {
mResponse = new cResponseMemBlk(this);
((cResponseMemBlk*)mResponse)->receiveAddTimerReq();
@@ -453,13 +461,22 @@ int cHttpResource::processRequest() {
}
}
- if (mPath.find("/web/") == 0) {
+ if (mPath.find("/web/", 0, 5) == 0) {
mPath = mFactory->getConfigDir() + mPath;
*(mLog->log())<< DEBUGPREFIX
<< " Found web request. serving " << mPath << endl;
ok_to_serve = true;
}
+ if (mPath.find("/live/", 0, 6) == 0) {
+ *(mLog->log())<< DEBUGPREFIX
+ << " Found live request. serving " << mPath << endl;
+ //mResponse = new cResponseLive(this, mPath.substr(6));
+ //((cResponseVdrDir*)mResponse)->sendMediaSegment( &statbuf);
+ return OKAY;
+
+ }
+
if (mPath.compare(0, strlen(VideoDirectory), VideoDirectory) == 0) {
*(mLog->log())<< DEBUGPREFIX
<< " Found video dir request. serving " << mPath << endl;