"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 -- "I worry about my child and the Internet all the time, even though she's too young to have logged on yet. Here's what I worry about. I worry that 10 or 15 years from now, she will come to me and say 'Daddy, where were you when they took freedom of the press away from the Internet?'" -- Mike Godwin [www.eff.org]
pgpiWkr79tSQD.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
