Example #1
0
 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))
Example #2
0
 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))
Example #3
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.player:
         self.btPlayer.play()
Example #4
0
 def onPlayBackPaused(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying(
     ) and self.btPlayer.player:
         self.btPlayer.pause()
Example #5
0
 def onPlayBackStopped(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying(
     ) and self.btPlayer.player:
         self.btPlayer.stop()
Example #6
0
 def startBTPlayer(self, macAddress):
     if "playing" in self.status:
         if xbmc.isBTPlayerActive() == 0:
             log("Start BTPlayer")
             xbmc.startBTPlayer(macAddress)
Example #7
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.btPlayer.play()
Example #8
0
 def startBTPlayer(self, macAddress):
     if "playing" in self.status:
         if xbmc.isBTPlayerActive() == 0:
             log("Start BTPlayer")
             xbmc.startBTPlayer(macAddress)
Example #9
0
 def onPlayBackResumed(self):
     log("##player resumed##")
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()
     else:
         log("##Not active##")
Example #10
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()
Example #11
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()