self.event = [ ]
self.currentlyPlayingService = None
self.currentlyPlayingServiceReference = None
- self.lastServiceRef = None
self.RecordTimer = RecordTimer.RecordTimer()
x(i)
def playService(self, ref):
- self.lastServiceRef = self.currentlyPlayingServiceReference
self.currentlyPlayingServiceReference = None
if ref is None:
self.stopService()
return 0
return 1
- def zapLast(self):
- return self.playService(self.lastServiceRef)
-
def getCurrentlyPlayingServiceReference(self):
return self.currentlyPlayingServiceReference
else:
return service
- def enqueueService(self, ref):
- return self.pnav.enqueueService(ref)
-
def getCurrentService(self):
service = self.pnav.getCurrentService()
def stopService(self):
self.pnav.stopService()
- def getPlaylist(self):
- playlist = ePlaylistPtr()
- if self.pnav.getPlaylist(playlist):
- return None
- return playlist
-
def pause(self, p):
return self.pnav.pause(p)