mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
Creating a screenshot added to yWeb
- Create Screenshot: http://box/control/screenshot
(patch by FlatTv)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2194 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 45a2a6eab8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-04-08 (Sun, 08 Apr 2012)
Origin message was:
------------------
* Creating a screenshot added to yWeb
- Create Screenshot: http://box/control/screenshot
(patch by FlatTv)
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2194 e54a6e83-5905-42d5-8d5c-058d10e6a962
------------------
This commit was generated by Migit
This commit is contained in:
@@ -194,6 +194,11 @@
|
|||||||
<td><a href="http://dbox/control/reloadplugins">
|
<td><a href="http://dbox/control/reloadplugins">
|
||||||
http://dbox/control/reloadplugins</a></td>
|
http://dbox/control/reloadplugins</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>42. <a href="#screenshot">Screenshot erstellen</a></td>
|
||||||
|
<td><a href="http://dbox/control/screenshot">
|
||||||
|
http://dbox/control/screenshot</a></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
@@ -1806,6 +1811,29 @@ Beispiel:<br>
|
|||||||
43700016d66<br>
|
43700016d66<br>
|
||||||
ok<br>
|
ok<br>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<!-- ----------------------------------------------------------- -->
|
||||||
|
<div class="title1"><a name="reloadplugins"></a>41. Plugins neu laden</div>
|
||||||
|
<div class="URL">Handler: http://dbox/control/reloadplugins</div>
|
||||||
|
<br>
|
||||||
|
<b>Parameter:</b> keine<br>
|
||||||
|
<b>R<EFBFBD>kgabe</b>: ok<br>
|
||||||
|
<br>
|
||||||
|
Die Pluginliste wird neu geladen.
|
||||||
|
<br><br>
|
||||||
|
|
||||||
|
<!-- ----------------------------------------------------------- -->
|
||||||
|
<div class="title1"><a name="screenshot"></a>42. Screenshot erstellen</div>
|
||||||
|
<div class="URL">Handler: http://dbox/control/screenshot</div>
|
||||||
|
<br>
|
||||||
|
<b>Parameter:</b> keine<br>
|
||||||
|
<b>R<EFBFBD>kgabe</b>: ok<br>
|
||||||
|
<br>
|
||||||
|
Screenshot mit TV Bild und OSD wird erstellt und unter /tmp/screenshot.png abgelegt.
|
||||||
|
<br>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
@@ -35,6 +35,7 @@
|
|||||||
#include <global.h>
|
#include <global.h>
|
||||||
#include "gui/plugins.h"//for relodplugins
|
#include "gui/plugins.h"//for relodplugins
|
||||||
#include <neutrino.h>
|
#include <neutrino.h>
|
||||||
|
#include <driver/screenshot.h>
|
||||||
// yhttpd
|
// yhttpd
|
||||||
#include "yhttpd.h"
|
#include "yhttpd.h"
|
||||||
#include "ytypes_globals.h"
|
#include "ytypes_globals.h"
|
||||||
@@ -176,6 +177,7 @@ const CControlAPI::TyCgiCall CControlAPI::yCgiCallList[]=
|
|||||||
{"version", &CControlAPI::VersionCGI, ""},
|
{"version", &CControlAPI::VersionCGI, ""},
|
||||||
{"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""},
|
{"reloadsetup", &CControlAPI::ReloadNutrinoSetupfCGI, ""},
|
||||||
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
|
{"reloadplugins", &CControlAPI::ReloadPluginsCGI, ""},
|
||||||
|
{"screenshot", &CControlAPI::ScreenshotCGI, ""},
|
||||||
// boxcontrol - devices
|
// boxcontrol - devices
|
||||||
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
{"volume", &CControlAPI::VolumeCGI, "text/plain"},
|
||||||
{"lcd", &CControlAPI::LCDAction, "text/plain"},
|
{"lcd", &CControlAPI::LCDAction, "text/plain"},
|
||||||
@@ -1447,6 +1449,13 @@ void CControlAPI::ReloadPluginsCGI(CyhookHandler *hh)
|
|||||||
hh->SendOk();
|
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)
|
void CControlAPI::ZaptoCGI(CyhookHandler *hh)
|
||||||
|
@@ -82,6 +82,7 @@ private:
|
|||||||
void VersionCGI(CyhookHandler *hh);
|
void VersionCGI(CyhookHandler *hh);
|
||||||
void ReloadNutrinoSetupfCGI(CyhookHandler *hh);
|
void ReloadNutrinoSetupfCGI(CyhookHandler *hh);
|
||||||
void ReloadPluginsCGI(CyhookHandler *hh);
|
void ReloadPluginsCGI(CyhookHandler *hh);
|
||||||
|
void ScreenshotCGI(CyhookHandler *hh);
|
||||||
void ZaptoCGI(CyhookHandler *hh);
|
void ZaptoCGI(CyhookHandler *hh);
|
||||||
void StartPluginCGI(CyhookHandler *hh);
|
void StartPluginCGI(CyhookHandler *hh);
|
||||||
void LCDAction(CyhookHandler *hh);
|
void LCDAction(CyhookHandler *hh);
|
||||||
|
Reference in New Issue
Block a user