Gorka Olaizola wrote: > On Fri, Nov 23, 2007 at 07:46:00PM +0100, Duncan Webb wrote: >> By replacing the calls with timer, I've converted the upsoon plug-in for >> kaa.notifier's timer calls and rpc calls. >> > I'm trying to update freevused plugin based on the upsoon changes > but I don't understand what to do. I suppose I have to change the poll > and eventhandler methods with the kaa.notifier Timer register method > but I have two problems. > > It seems, based on the documentation, that Timer supports a resolution > of seconds. It could be enough but it seems too much for input handling.
Timer start() takes a floating point number, so you can call start(0.1) for 1/10 second. > The other problem is that in eventhandler I use a third parameter named > menuw to know if I am in the menu or playing an item. ¿How can I handle > this parameter with the new API? Good question, I'm not sure yet. The context and args are done like: | Event('BAR', context='test', arg=(1, 2, 3)).post() | rc.post_event(Event('FOO')) I've attached a test program that has a bit of code to see what events are being generated. I'm having a problem with events that are posted from with plug-ins, such as the IDENTIFY_MEDIA from the rom_drives plug-in, it doesn't seem to get posted, which means that the DVD or audio CD don't start playing. May be dischi can help, whith this one. Duncan
events.py
Description: application/python
------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel