PDA

View Full Version : How to implement onAction() with Plugins


nico98
2008-11-22, 23:22
Hello,
I'm trying to understand how plugins work. (and Python too)
I would like to create a plugin to play music with foobar2000 (Windows version of XBMC).
The problem is that I don't know how or simply if it's possible to intercept key pressed to simulate Play Pause Stop ....
I saw the "onAction" function in xbmcgui.Window class but I don't manage to use it creating a plugin.
Due to my poor english I hope to be clear.
Thanks for yours answers
Nicolas

lolol
2008-11-23, 15:24
Hi!

This shoud'nt be in a script! Technically i would build up a new PlayerClass, like Mplayer or DVDPlayer, but as an wrapper for Foobar...


This would be much cleaner as building it as a python script because you still can use xbmc filesystem to navigate...

Just my 2 cents
lolol