示例#1
0
文件: service.py 项目: younes200/osmc
 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))
示例#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))
示例#3
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.player:
         self.btPlayer.play()
示例#4
0
 def onPlayBackPaused(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying(
     ) and self.btPlayer.player:
         self.btPlayer.pause()
示例#5
0
 def onPlayBackStopped(self):
     if xbmc.isBTPlayerActive() and self.btPlayer.isPlaying(
     ) and self.btPlayer.player:
         self.btPlayer.stop()
示例#6
0
 def startBTPlayer(self, macAddress):
     if "playing" in self.status:
         if xbmc.isBTPlayerActive() == 0:
             log("Start BTPlayer")
             xbmc.startBTPlayer(macAddress)
示例#7
0
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.btPlayer.play()
示例#8
0
 def startBTPlayer(self, macAddress):
     if "playing" in self.status:
         if xbmc.isBTPlayerActive() == 0:
             log("Start BTPlayer")
             xbmc.startBTPlayer(macAddress)
示例#9
0
 def onPlayBackResumed(self):
     log("##player resumed##")
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()
     else:
         log("##Not active##")
示例#10
0
文件: service.py 项目: AlexFTWW/osmc
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()
示例#11
0
文件: service.py 项目: Bahrnegus/osmc
 def onPlayBackResumed(self):
     if xbmc.isBTPlayerActive():
         self.a2dpInfo.play()