Habs jetzt so gelöst, scheint zu laufen:
Python
import xbmc
import xbmcgui
class MyPlayer(xbmc.Player):
def __init__ (self):
xbmc.Player.__init__(self)
def onQueueNextItem(self):
xbmc.executebuiltin("Notification(Next,,250)")
def onPlayBackStarted(self):
xbmc.executebuiltin("Notification(Started,,250)")
def onPlayBackEnded(self):
xbmc.executebuiltin("Notification(Ended,,250)")
def onPlayBackStopped(self):
xbmc.executebuiltin("Notification(Stopped,,250)")
def onPlayBackPaused(self):
xbmc.executebuiltin("Notification(Pause,,250)")
def onPlayBackResumed(self):
xbmc.executebuiltin("Notification(Resumed,,250)")
def onPlayBackSeek(time, seekOffset):
xbmc.executebuiltin("Notification(Seek,,250)")
class MyMonitor(xbmc.Monitor):
def __init__ (self):
xbmc.Monitor.__init__(self)
def onAbortRequested(self):
global closescript
closescript = True
closescript = False
player = MyPlayer()
monitor = MyMonitor()
while not ( closescript ):
xbmc.sleep(500)
Alles anzeigen