<%pre> #include #include #include #include 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> if (!cUser::CurrentUserHasRightTo(UR_USEREMOTE)) throw HtmlError( tr("Sorry, no permission. Please contact your administrator!") ); pageTitle = tr("Remote Control"); #if VDRVERSNUM < 20301 ReadLock channelsLock( Channels ); if ( !channelsLock ) throw HtmlError( tr("Couldn't aquire access to channels, please try again later.") ); #endif // cChannel* Channel; (see %request above) if ( channel > 0 ) { #if VDRVERSNUM >= 20301 LOCK_CHANNELS_READ; Channel = (cChannel *)Channels->GetByNumber( channel ); #else Channel = Channels.GetByNumber( channel ); #endif } else { if (cDevice::CurrentChannel()) { #if VDRVERSNUM >= 20301 LOCK_CHANNELS_READ; Channel = (cChannel *)Channels->GetByNumber(cDevice::CurrentChannel()); #else Channel = Channels.GetByNumber(cDevice::CurrentChannel()); #endif } else { #if VDRVERSNUM >= 20301 LOCK_CHANNELS_READ; Channel = (cChannel *)Channels->Get( Channels->GetNextNormal( -1 ) ); #else Channel = Channels.Get( Channels.GetNextNormal( -1 ) ); #endif } } 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()) { }> <{ } }>
" 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
<%include>page_exit.eh <%def remote_actions> <$ tr("Selection") $>:  <{ if ( LiveGrabImageManager().CanGrab()) { }>             <& pageelems.vlc_stream_channel channelId=(Channel->GetChannelID()) &> - <{ } }>   -