diff --git a/src/nhttpd/doc/nhttpd_controlapi.html b/src/nhttpd/doc/nhttpd_controlapi.html
index f6d69dfda..e87fa6c56 100644
--- a/src/nhttpd/doc/nhttpd_controlapi.html
+++ b/src/nhttpd/doc/nhttpd_controlapi.html
@@ -194,6 +194,11 @@
http://dbox/control/reloadplugins |
+
+ 42. Screenshot erstellen |
+
+ http://dbox/control/screenshot |
+
|
|
@@ -1806,6 +1811,29 @@ Beispiel:
43700016d66
ok
+
+
+
+
+
+
+Handler: http://dbox/control/reloadplugins
+
+Parameter: keine
+Rükgabe: ok
+
+Die Pluginliste wird neu geladen.
+
+
+
+
+Handler: http://dbox/control/screenshot
+
+Parameter: keine
+Rükgabe: ok
+
+Screenshot mit TV Bild und OSD wird erstellt und unter /tmp/screenshot.png abgelegt.
+
diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp
index 7c37fdeef..238250056 100644
--- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp
+++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp
@@ -35,6 +35,7 @@
#include
#include "gui/plugins.h"//for relodplugins
#include
+#include
// yhttpd
#include "yhttpd.h"
#include "ytypes_globals.h"
@@ -176,6 +177,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
{"version", &CControlAPI::VersionCGI, ""},
{"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""},
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
+ {"screenshot", &CControlAPI::ScreenshotCGI, ""},
// boxcontrol - devices
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
{"lcd", &CControlAPI::LCDAction, "text/plain"},
@@ -1447,6 +1449,13 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
hh->SendOk();
}
+void CControlAPI::ScreenshotCGI(CyhookHandler *hh)
+{
+ CScreenShot * sc = new CScreenShot("/tmp/screenshot.png", (CScreenShot::screenshot_format_t)0 /*PNG*/);
+ sc->EnableOSD(true);
+ sc->Start();
+ hh->SendOk();
+}
//-----------------------------------------------------------------------------
void CControlAPI::ZaptoCGI(CyhookHandler *hh)
diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.h b/src/nhttpd/tuxboxapi/coolstream/controlapi.h
index 91ab2792e..052739005 100644
--- a/src/nhttpd/tuxboxapi/coolstream/controlapi.h
+++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.h
@@ -82,6 +82,7 @@ private:
void VersionCGI(CyhookHandler *hh);
void ReloadNutrinoSetupfCGI(CyhookHandler *hh);
void ReloadPluginsCGI(CyhookHandler *hh);
+ void ScreenshotCGI(CyhookHandler *hh);
void ZaptoCGI(CyhookHandler *hh);
void StartPluginCGI(CyhookHandler *hh);
void LCDAction(CyhookHandler *hh);