2012-06-05, 23:18
Hello,
I make an addon build like a xbmc service to control the lights in my room with xbmc player events.
It works perfectly with Eden version.
I installed the nigthly build to test my addon with Frodo early version.
Everything works well except the detection of the onPlayBackStarted event.
It is like the method is not called by xbmc when he starts to play the video.
Is there somebody that have the same problem or it is my addon that has a conception issue ?
A sample of the code :
thanks for your help.
I make an addon build like a xbmc service to control the lights in my room with xbmc player events.
It works perfectly with Eden version.
I installed the nigthly build to test my addon with Frodo early version.
Everything works well except the detection of the onPlayBackStarted event.
It is like the method is not called by xbmc when he starts to play the video.
Is there somebody that have the same problem or it is my addon that has a conception issue ?
A sample of the code :
Quote:...
# ADDON PLAYER
xbmc.log('KNX-Commander: NEW CLASS PLAYER')
class MyPlayer(xbmc.Player) :
xbmc.log('KNX-Commander: Class player is opened')
def __init__ (self):
xbmc.Player.__init__(self)
xbmc.log('KNX-Commander: Class player is initialized')
def onPlayBackStarted(self):
if xbmc.Player().isPlayingVideo():
xbmc.log('KNX-Commander: PLAYBACK STARTED')
#Execute Player START Event settings on Device
if my_pevstart=="true":
linknx_send(my_ip,my_port,my_pevstartcmd,my_pevstartval)
...
thanks for your help.