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