PDA

View Full Version : Need Help: Stop Button Listener


ATrattnig
2009-07-27, 15:47
Hi,

i want to make a little plugin for watching TV with DVB-T :). But i need to kill a process when the stop button of the xbmc video player is pushed. Otherwise xbmc hangs up. Therefore i need a kind of listener for this button. In addition i am very new to python scripting.
Can you help me.
Thank you,

ATrattnig

spiff
2009-07-27, 16:19
you can listen to the broadcasts from the http api for instance

ATrattnig
2009-07-28, 09:57
ok, i think this is possible. With

http://xbox/xbmcCmds/xbmcHttp?command=SetBroadcast(2)


i think i can get the Button "OnAction" events. But i cant find a good example for this. Maybe do you have one?

greetings

Nuka1195
2009-07-28, 16:41
look at xbmc lyrics script for an example of the onPlayBackStopped() method.

very bottom of the script the player is subclassed