-
- def playService(self, ref):
- print "playing", ref
- self.currentlyPlayingServiceReference = None
+ if i == iPlayableService.evEnd:
+ self.currentlyPlayingServiceReference = None
+ self.currentlyPlayingService = None
+
+ def dispatchRecordEvent(self, rec_service, event):
+# print "record_event", rec_service, event
+ for x in self.record_event:
+ x(rec_service, event)
+
+ def playService(self, ref, checkParentalControl = True, forceRestart = False):
+ oldref = self.currentlyPlayingServiceReference
+ if ref and oldref and ref == oldref and not forceRestart:
+ print "ignore request to play already running service(1)"
+ return 0
+ print "playing", ref and ref.toString()