"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

-- 
die_if_kernel("Kernel gets FloatingPenguinUnit disabled trap", regs);
        2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c

Attachment: pgpTTJZaHhaRq.pgp
Description: PGP signature

-------------------------------------------------------------------------
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