mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
nhttpd/tuxboxapi/controlapi.cpp: add direct record start for current channel
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();
|
||||
}
|
||||
|
@@ -136,6 +136,8 @@ CNeutrinoAPI::CNeutrinoAPI()
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_HDMI_CEC_STANDBY, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_SET_MUTE, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_SET_VOLUME, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::RECORD_START, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::RECORD_STOP, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
|
||||
pmutex = new OpenThreads::Mutex(OpenThreads::Mutex::MUTEX_RECURSIVE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user