Control-plugin: Difference between revisions

From VDR Wiki
Jump to navigation Jump to search
 
Line 79: Line 79:
==Links==
==Links==
# [http://ricomp.de/vdr Plugins Homepage]
# [http://ricomp.de/vdr Plugins Homepage]
# [http://www.u32.de/vdr.html#improved Version]
# [http://www.u32.de/vdr.html# improved Version]


[[Category:Plugins]]
[[Category:Plugins]]

Latest revision as of 11:01, 30 November 2013

Description

Author: Jan Rieger

Displays VDRs OSD on Telnet console. Control VDR from any remote computer capable of telnet.

Status

  • Last Update 09/2008
  • Last Patch 05/2012

Images

Configuration

svdrphosts.conf

In file $VDRCONFIG/svdrphosts.conf the IP or subnet masks of the computer needs to be allowed opening a Telnet session, eg. 192.168.0.76 if opening telnet with this IP. Otherwise, only message "access denied" in Telnet Client appears.

Parameter

Parameter (short) Parameter (long) Description
-t <TTY> --terminal=<TTY> tty to control vdr per virtual terminal (default: none)
-p <PORT> --port=<PORT> port to receive remote connections (default: 2002)

Patches

[fix vdr-control segfault on stopping plugin]

diff -Nru control-0.0.2a-kw3/control.c control-0.0.2a-kw3_0/control.c
--- control-0.0.2a-kw3/control.c	2008-09-26 16:19:29.000000000 +0200
+++ control-0.0.2a-kw3_0/control.c	2012-08-04 12:17:08.000000000 +0200
@@ -32,6 +32,7 @@
 class cPluginControl : public cPlugin {
 private:
   // Add any member variables or functions you may need here.
+  cCtrlState* _pState;
   cCtrlGateways* _pReceivers;
   cCtrlGateway*  _pTerminal;
 
@@ -67,6 +68,7 @@
 cPluginControl::~cPluginControl()
 {
   // Clean up after yourself!
+  delete(_pState);
   delete(_pReceivers);
   delete(_pTerminal);
 }
@@ -120,7 +122,7 @@
   // Start any background activities the plugin shall perform.
 
   if (glParPort || glParTerminal && *glParTerminal)
-    new cCtrlState();
+    _pState = new cCtrlState();
 
   if (glParPort) {
     _pReceivers = new cCtrlGateways();


Tipps

  • Access with PuTTY
for PuTTY the Function keys (F1..Fn) have to be send in Linux format. You can modify these settings in connection configuration dialog: Terminal -> Keyboard -> "The Function keys and keypad" = "Linux".

Versions

Current Version

Links

  1. Plugins Homepage
  2. improved Version