mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
webif standby -add option CEC standby off (dont use TV off)
This commit is contained in:
@@ -430,30 +430,41 @@ void CControlAPI::StandbyCGI(CyhookHandler *hh)
|
||||
CEC_HDMI_off = true;
|
||||
}
|
||||
}
|
||||
//dont use CEC with standbyoff --- use: control/standby?off&cec=off
|
||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){
|
||||
videoDecoder->SetCECAutoView(0);
|
||||
}
|
||||
|
||||
if (hh->ParamList["1"] == "on") // standby mode on
|
||||
{
|
||||
//dont use CEC with standbyoff (TV off) --- use: control/standby?off&cec=off
|
||||
if(g_settings.hdmi_cec_standby && CEC_HDMI_off){
|
||||
videoDecoder->SetCECAutoStandby(0);
|
||||
}
|
||||
|
||||
if(CNeutrinoApp::getInstance()->getMode() != 4)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_ON, CEventServer::INITID_HTTPD);
|
||||
hh->SendOk();
|
||||
|
||||
if(g_settings.hdmi_cec_standby && CEC_HDMI_off){//dont use CEC with standbyoff (TV off)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::EVT_HDMI_CEC_STANDBY, CEventServer::INITID_HTTPD);
|
||||
}
|
||||
}
|
||||
else if (hh->ParamList["1"] == "off")// standby mode off
|
||||
{
|
||||
//dont use CEC with with view on (TV on) --- use: control/standby?off&cec=off
|
||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){
|
||||
videoDecoder->SetCECAutoView(0);
|
||||
}
|
||||
|
||||
NeutrinoAPI->Zapit->setStandby(false);
|
||||
if(CNeutrinoApp::getInstance()->getMode() == 4)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::STANDBY_OFF, CEventServer::INITID_HTTPD);
|
||||
hh->SendOk();
|
||||
|
||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){//dont use CEC with view on (TV on)
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::EVT_HDMI_CEC_VIEW_ON, CEventServer::INITID_HTTPD);
|
||||
}
|
||||
}
|
||||
else
|
||||
hh->SendError();
|
||||
|
||||
if(g_settings.hdmi_cec_view_on && CEC_HDMI_off){//dont use CEC with standbyoff
|
||||
NeutrinoAPI->EventServer->sendEvent(NeutrinoMessages::EVT_HDMI_CEC_ON, CEventServer::INITID_HTTPD);
|
||||
}
|
||||
}
|
||||
else
|
||||
if(CNeutrinoApp::getInstance()->getMode() == 4)//mode_standby = 4
|
||||
|
@@ -130,7 +130,8 @@ CNeutrinoAPI::CNeutrinoAPI()
|
||||
EventServer->registerEvent2( NeutrinoMessages::LOCK_RC, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::UNLOCK_RC, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::RELOAD_SETUP, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");//reload neutrino conf
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_HDMI_CEC_ON, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_HDMI_CEC_VIEW_ON, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
EventServer->registerEvent2( NeutrinoMessages::EVT_HDMI_CEC_STANDBY, CEventServer::INITID_HTTPD, "/tmp/neutrino.sock");
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user