On Jan 19, 2008 12:50 PM, Dirk Meyer <[EMAIL PROTECTED]> wrote:
>
> "Jonathan Isom" wrote:
> > On Jan 19, 2008 12:15 PM, Dirk Meyer <[EMAIL PROTECTED]> wrote:
> >>
> >> "Jonathan Isom" wrote:
> >> > Hi
> >> >    I'm working on a vlc plugin for the live pause plugin and I
> >> > want/need to call a function once or twice a minute.
> >> > I want to send a command to vlc to be read by the plugin.  this works
> >> > but I'm not sure the best way to call it.
> >> > the purpose of the function is to update amount of subtitles and audio
> >> > tracks that my get updated from time to
> >> > time with different shows.  should I put an  `if time.time() % 60 ==
> >> > 0:' in the event loop or use another method.
> >>
> >> For Freevo 1.8 you can use
> >> kaa.notifier.Timer(the_function_to_call).start(30)
> >> and return False in that function if you don't need it anymore.
> >>
> >> Dischi
> >    Is the stop and unregister functions functional.  I would think
> > they are for stopping
> > a timer from further execution but they don't seem to be doing what I
> > expect, if anything.
>
> Calling stop will stop the callback from beeing called again
> later. You can do the same with returning False. unregister is for
> internal use (but should also do the same).
>
>
> Dischi
Thanks  again,  Somehow I had 2 calls returning to the same variable
so the first wasn't being shutdown
cause the second was overwriting it .

Later

Jonathan

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to