self.pnav.m_event.get().append(self.callEvent)
self.event = [ ]
self.currentlyPlayingService = None
+ self.currentlyPlayingServiceReference = None
self.RecordTimer = RecordTimer.RecordTimer()
def playService(self, ref):
self.currentlyPlayingServiceReference = None
+ if ref is None:
+ self.stopService()
+ return 0
+
if not self.pnav.playService(ref):
self.currentlyPlayingServiceReference = ref
return 0
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)
- def recordWithTimer(self, begin, end, ref, epg, description):
+ def recordWithTimer(self, ref, begin, end, name, description, eit):
if isinstance(ref, eServiceReference):
ref = ServiceReference.ServiceReference(ref)
- entry = RecordTimer.RecordTimerEntry(begin, end, ref, epg, description)
+ entry = RecordTimer.RecordTimerEntry(ref, begin, end, name, description, eit)
self.RecordTimer.record(entry)
return entry
def shutdown(self):
self.RecordTimer.shutdown()
+ del self.pnav
+
+ def stopUserServices(self):
+ self.stopService()