[vdr] cStatus::ChannelSwitch(...) Problem

Jörg Wendel vdr-ml at jwendel.de
Sun Sep 10 13:59:04 CEST 2006


On Sunday 10 September 2006 11:43, Jörg Wendel wrote:
> Thanks,
> i have found a workaround for the pin plugin.
>
> Another question, is there a way to detect each user action? In detail i
> looking for a way to detect the time between two user actions to activate
> the FSK-Protection if the user is longer inactive than a configured time.

Hi,

i found a solution, i extended the patch of the pin plugin with an new status 
function:

virtual void UserAction(const eKeys key, const cOsdObject* Interact){}
   // report user action

I don't know if this is the best way but it works for me.
Mabe it's helpful for other plugins too.

Greets
Jörg

> Jörg
>
> On Sunday 10 September 2006 11:20, Klaus Schmidinger wrote:
> > Stefan Huelswitt wrote:
> > > On 10 Sep 2006 Jörg Wendel <vdr-ml at jwendel.de> wrote:
> > >> i use the the function "cStatus::ChannelSwitch(const cDevice *Device,
> > >> int ChannelNumber) {}" in a plugin, now i wonder that it is called
> > >> every 21 seconds! This begin 60 minutes after starting the VDR.
> > >>
> > >> Is this the the normal behavior?
> > >
> > > I guess that's VDR switching the channel für EPG scan.
> >
> > That's correct.
> >
> > >> How i can detect wat's the matter, a 'automatic' channel switch or a
> > >> 'normal' switch triggert by the user?
> > >
> > > As far as I'm aware you cannot detect this at this level.
> >
> > Well, VDR itself uses EITScanner.UsesDevice(this) in
> > cDvbDevice::SetChannelDevice() to detect this case. However, I won't
> > guarantee that this will still be available in future VDR version,
> > because I don't like this...
> >
> > Klaus
> >
> > _______________________________________________
> > vdr mailing list
> > vdr at linuxtv.org
> > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
> _______________________________________________
> vdr mailing list
> vdr at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



More information about the vdr mailing list