diff options
author | thlo <smarttv640@gmail.com> | 2013-09-01 21:09:15 +0200 |
---|---|---|
committer | thlo <smarttv640@gmail.com> | 2013-09-01 21:09:15 +0200 |
commit | 417202343b64947e80dbe14b4ab456cc6442e88c (patch) | |
tree | 1e73bb20f1ac91725dfd1e0f124c419c1fe7a391 /httpresource.c | |
parent | 752587bccad186db28df673f84690eb265ecd991 (diff) | |
download | vdr-plugin-smarttvweb-417202343b64947e80dbe14b4ab456cc6442e88c.tar.gz vdr-plugin-smarttvweb-417202343b64947e80dbe14b4ab456cc6442e88c.tar.bz2 |
New enable flag for RecCmds and new Port parameter in smarttvweb.conf. Bug fixes.
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; |