mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
*neutrino: add timeout parameter for message via web api
based up patch by FlatTV see also: http://www.dbox2world.net/board293-coolstream-hd1/board314-coolstream-development/10855-nachrichten-%C3%BCber-das-yweb-mit-variablem-timeout-senden/ git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1782 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -1048,12 +1048,16 @@ Neutrino opens a pop up (popup) or message (nmsg) window in which the<br>
|
||||
text part of the parameter is displayed. A pop up window closes<br>
|
||||
itself after a few seconds whereas a message window must be closed<br>
|
||||
using the remote control.<br>
|
||||
To change the time, after the window closes automaticly, use the parameter "timeout"<br>
|
||||
<div class="example">
|
||||
Examples:<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?popup=Hello%20World<br>
|
||||
opens a popup window on the TV screen with content "Hello World"<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?popup=Hello%20World&timeout=30<br>
|
||||
opens a popup window on the TV screen with content "Hello World". The window closes automaticly after 30 seconds.<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?nmsg=Hello%20Welt<br>
|
||||
opens a message window on the TV screen with content "Hello World"<br>
|
||||
</div>
|
||||
@@ -1090,12 +1094,17 @@ Neutrino oeffnet ein Popup(popup)- oder Message(nmsg)-Fenster, in dem<br>
|
||||
der Text des Parameters dargestellt wird. Ein Popupfenster schliesst<br>
|
||||
sich nach wenigen Sekunden selbst, wohingegen ein Message-Fenster mit<br>
|
||||
der Fernbedienung geschlossen werden muss.<br>
|
||||
Um die Zeit zu <20>ndern, wie lange das Fenster ge<67>ffnet bleiben soll,<br>
|
||||
kann der Parameter "timeout" angegeben werden.<br>
|
||||
<div class="example">
|
||||
Beispiele:<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?popup=Hallo%20World<br>
|
||||
<EFBFBD>ffnet ein Popup-Fenster auf dem Fernseher, in dem "Hallo World" steht<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?popup=Hallo%20World&timeout=30<br>
|
||||
<EFBFBD>ffnet ein Popup-Fenster auf dem Fernseher, in dem "Hallo World" steht und sich nach 30 Sekunden schlie<69>t.<br>
|
||||
<br>
|
||||
>>>http://dbox/control/message?nmsg=Hallo%20Welt<br>
|
||||
<EFBFBD>ffnet ein Message-Fenster auf dem Fernseher, in dem "Hallo Welt" steht<br>
|
||||
</div>
|
||||
|
@@ -546,6 +546,12 @@ void CControlAPI::MessageCGI(CyhookHandler *hh)
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(hh->ParamList["timeout"].empty()))
|
||||
{
|
||||
message += "&timeout=";
|
||||
message += hh->ParamList["timeout"];
|
||||
}
|
||||
|
||||
if (event != 0)
|
||||
{
|
||||
message=decodeString(message);
|
||||
|
Reference in New Issue
Block a user