From 95625cfeb04659d9419b12642458e3d5a139a899 Mon Sep 17 00:00:00 2001 From: Jasmin Jessich Date: Sun, 14 May 2017 23:57:33 +0200 Subject: Patched with osd-patch.txt From http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1234887-live-patch-f%C3%BCr-osd-ohne-ausgabeplugin/#post1234887 --- pages/Makefile | 2 +- pages/osd.ecpp | 26 +++++++ pages/remote.ecpp | 207 ++++++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 189 insertions(+), 46 deletions(-) create mode 100644 pages/osd.ecpp (limited to 'pages') diff --git a/pages/Makefile b/pages/Makefile index 1e56731..cfe482c 100644 --- a/pages/Makefile +++ b/pages/Makefile @@ -15,7 +15,7 @@ OBJS := menu.o recordings.o schedule.o multischedule.o screenshot.o \ searchepg.o login.o ibox.o xmlresponse.o play_recording.o \ pause_recording.o stop_recording.o ffw_recording.o \ rwd_recording.o setup.o content.o epginfo.o timerconflicts.o \ - recstream.o users.o edit_user.o edit_recording.o + recstream.o users.o edit_user.o edit_recording.o osd.o SRCS := $(patsubst %.o,%.cpp,$(OBJS)) ESRCS := $(patsubst %.o,%.ecpp,$(OBJS)) diff --git a/pages/osd.ecpp b/pages/osd.ecpp new file mode 100644 index 0000000..b7cf24a --- /dev/null +++ b/pages/osd.ecpp @@ -0,0 +1,26 @@ +<%pre> +#include +#include +#include +#include +#include "grab.h" +#include "setup.h" +#include "tools.h" +#include "users.h" +#include "osd_status.h" + +using namespace std; +using namespace vdrlive; + + +<%session scope="global"> +bool logged_in(false); + +<%request scope="page"> + +<%cpp> +if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); +reply.setContentType( "application/xml" ); + +reply.out() << LiveOsdStatusMonitor().GetHtml(); + diff --git a/pages/remote.ecpp b/pages/remote.ecpp index 8dc4703..d76b208 100644 --- a/pages/remote.ecpp +++ b/pages/remote.ecpp @@ -74,12 +74,60 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <& pageelems.stylesheets &> <& pageelems.ajax_js &> % reply.sout().imbue(locale()); - + <& pageelems.logo &> <& menu active="remote" component=("remote.remote_actions")>
-
-<{ if (!LiveGrabImageManager().CanGrab()) { }> - bloek -<{ } else { }> -
+
+<{ if (LiveGrabImageManager().CanGrab()) { }> + <{ } }> +
" width="162" height="378" border="0" usemap="#remote" alt="" /> - Power - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 0 - Vol+ - Vol- - P+ - P- - Mute - Record - Menu - Exit - Subtitles - Audio - Up - Right - Down - Left - Ok - Red - Green - Yellow - Blue + Power + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 0 + Vol+ + Vol- + P+ + P- + Mute + Record + Menu + Exit + Subtitles + Audio + Up + Right + Down + Left + Ok + Red + Green + Yellow + Blue
@@ -175,5 +287,10 @@ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); <%include>page_exit.eh <%def remote_actions> -<$ tr("Snapshot interval") $>:           <& pageelems.vlc_stream_channel channelId=(Channel->GetChannelID()) &> +<$ tr("Selection") $>:  +<{ if ( LiveGrabImageManager().CanGrab()) { }> +             <& pageelems.vlc_stream_channel channelId=(Channel->GetChannelID()) &> - +<{ } }> +   - +   -- cgit v1.2.3