diff options
Diffstat (limited to 'httpresource.c')
-rwxr-xr-x | httpresource.c | 19 |
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; |