cStatus::ChannelSwitch(...) Problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx> 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@xxxxxxxxxxx
> > http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>
> _______________________________________________
> vdr mailing list
> vdr@xxxxxxxxxxx
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux