<%pre> #include #include #include #include #include "grab.h" #include "setup.h" #include "tools.h" using namespace std; using namespace vdrlive; <%args> int channel = -1; <%session scope="global"> bool logged_in(false); <%request scope="page"> cChannel* Channel; <%include>page_init.eh <{ if (!logged_in && LiveSetup().UseAuth()) return reply.redirect("login.html"); }> <%cpp> pageTitle = tr("Remote Control"); ReadLock channelsLock( Channels ); if ( !channelsLock ) throw HtmlError( tr("Couldn't aquire access to channels, please try again later.") ); // cChannel* Channel; (see %request above) if ( channel > 0 ) { Channel = Channels.GetByNumber( channel ); } else { if (cDevice::CurrentChannel()) { Channel = Channels.GetByNumber(cDevice::CurrentChannel()); } else { Channel = Channels.Get( Channels.GetNextNormal( -1 ) ); } } if ( Channel == 0 ) throw HtmlError( tr("Couldn't find channel or no channels available. Maybe you mistyped your request?") ); <& pageelems.doc_type &> VDR-Live - <$ pageTitle $> <& pageelems.stylesheets &> <& pageelems.ajax_js &> % reply.sout().imbue(locale()); <& pageelems.logo &> <& menu active="remote" component=("remote.remote_actions")>
<{ if (!LiveGrabImageManager().CanGrab()) { }> bloek <{ } else { }>
<{ } }>
" width="162" height="363" border="0" usemap="#remote" alt="" /> Power 1 2 3 4 5 6 7 8 9 0 Vol+ Vol- P+ P- Mute Record Menu Exit Up Right Down Left Ok Red Green Yellow Blue
<%include>page_exit.eh <%def remote_actions> <$ tr("Snapshot interval") $>:           <& pageelems.vlc_stream_channel channelId=(Channel->GetChannelID()) &>