Re: [vdr] ledxmit-irsend to STB before channel-change??

2007-02-16 Thread Udo Richter

Simon Baxter wrote:

I'm looking for a way to execute a command whenever a channel change is
selected.  I think part of the 'sky' plugin is close to what I want -
without the stream type changing part.

Has anyone done anything like this?


Not as far as I know, but it should be possible with a quite simple 
plugin, even for a plugin-beginner:


- do newplugin to create a vanilla plugin
- Add code to derive an object from cStatus, eg.
  class cMyStatus : public cStatus {  }
- Add the ChannelSwitch method, from there call SystemExec(), found in
  thread.h
- Create an instance (ptr=new cMyStatus()) of this object in the plugin
  start method, and destroy it in the stop method.

The script you call with SystemExec should terminate quicky, since it 
will block VDR. If you need more time, you can call stuff with  in your 
script.



Cheers,

Udo

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] ledxmit-irsend to STB before channel-change??

2007-02-14 Thread Simon Baxter
I'm looking for a way to execute a command whenever a channel change is
selected.  I think part of the 'sky' plugin is close to what I want -
without the stream type changing part.

I have a PVR-150 running with the pvrinput plugin, attached via composite
to a digital cable STB.  I have led-xmit (from the Myth pages) working
from the command line, but need a way for VDR to execute a command each
time a channel-change is requested, either for a recording or manually:

/usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE ADB_ICAN3000 channel#


Has anyone done anything like this?


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr