mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 07:22:57 +02:00
nhttpd/tuxboxapi/controlapi.cpp: add direct record start for current channel
Origin commit data
------------------
Branch: ni/coolstream
Commit: fc11a76c01
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2016-03-02 (Wed, 02 Mar 2016)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -370,17 +370,27 @@ void CControlAPI::SetModeCGI(CyhookHandler *hh)
|
||||
}
|
||||
else if (hh->ParamList["record"] == "start") // start record mode
|
||||
{
|
||||
#if 0
|
||||
if(hh->ParamList["stopplayback"] == "true")
|
||||
NeutrinoAPI->Zapit->stopPlayBack();
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(true);
|
||||
NeutrinoAPI->Zapit->setRecordMode(true);
|
||||
#endif
|
||||
CTimerd::RecordingInfo recinfo;
|
||||
recinfo.eventID = 0;
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::RECORD_START, CEventServer::INITID_HTTPD, (void *)&recinfo, sizeof(CTimerd::RecordingInfo));
|
||||
}
|
||||
else if (hh->ParamList["record"] == "stop") // stop record mode
|
||||
{
|
||||
#if 0
|
||||
NeutrinoAPI->Zapit->setRecordMode(false);
|
||||
NeutrinoAPI->Sectionsd->setPauseScanning(false);
|
||||
if (!NeutrinoAPI->Zapit->isPlayBackActive())
|
||||
NeutrinoAPI->Zapit->startPlayBack();
|
||||
#endif
|
||||
CTimerd::RecordingInfo recinfo;
|
||||
recinfo.eventID = 0; // FIXME must present
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::RECORD_STOP, CEventServer::INITID_HTTPD, (void *)&recinfo, sizeof(CTimerd::RecordingInfo));
|
||||
}
|
||||
hh->SendOk();
|
||||
}
|
||||
|
Reference in New Issue
Block a user