2018-08-26, 11:49
Hello guys,
I noticed one my addon broke in v18 alpha 3. It is using XBMCPlayer class to react when something is played (this works) and then isPlayingVideo to see if what being played is audio or video. i.e. But it just doesn't work. It always returns FALSE. When I run it several times, eventualy it catches up and returns TRUE, but most of the time it deosn't work. As if there is a delay in setting it after I get onPlayBackStarted. It worked fine in v16 and v17.
Any clues?
Thanx!
D.
I noticed one my addon broke in v18 alpha 3. It is using XBMCPlayer class to react when something is played (this works) and then isPlayingVideo to see if what being played is audio or video. i.e. But it just doesn't work. It always returns FALSE. When I run it several times, eventualy it catches up and returns TRUE, but most of the time it deosn't work. As if there is a delay in setting it after I get onPlayBackStarted. It worked fine in v16 and v17.
Any clues?
Thanx!
D.
Quote: player = XBMCPlayer()
class XBMCPlayer(xbmc.Player):
def __init__(self):
xbmc.Player.__init__(self)
def onPlayBackStarted(self):
if self.isPlayingVideo():
isVideo = True
else:
isVideo = False