def onPreviousItem(self): if __addon__.getSetting("debug") == "true": log("Previous Item Event Fired") if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying() and self.btPlayer.player: try: self.btPlayer.previous() except Exception as e: log("Exception caught trying to request previous track: " + str(e))
def onNextItem(self): if __addon__.getSetting("debug") == "true": log("Next Item Event Fired") if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying(): try: self.btPlayer.next() except Exception as e: log("Exception caught trying to request next track: " + str(e))
def onPlayBackResumed(self): if xbmc.isBTPlayerActive() and self.btPlayer.player: self.btPlayer.play()
def onPlayBackPaused(self): if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying( ) and self.btPlayer.player: self.btPlayer.pause()
def onPlayBackStopped(self): if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying( ) and self.btPlayer.player: self.btPlayer.stop()
def startBTPlayer(self, macAddress): if "playing" in self.status: if xbmc.isBTPlayerActive() == 0: log("Start BTPlayer") xbmc.startBTPlayer(macAddress)
def onPlayBackResumed(self): if xbmc.isBTPlayerActive(): self.btPlayer.play()
def onPlayBackResumed(self): log("##player resumed##") if xbmc.isBTPlayerActive(): self.a2dpInfo.play() else: log("##Not active##")
def onPlayBackResumed(self): if xbmc.isBTPlayerActive(): self.a2dpInfo.play()