def setPlayItem(self, it): if not isinstance(it, PVideo): log.error("""[Player] playItem: incompatible play item %s""", str(it)) return setting.resetSettings() self.play_it = it self.playSettings = it.settings
def exit(self, callback=None): for f in self.onClose: f() # fix for HDMU sh4 image.. if self.hdmuFix: ServiceEventTracker.EventMap[14] = self.rassFuncs setting.resetSettings() self.content_provider = None self.videoPlayer = None self.session.nav.playService(self.oldService) if self.callback: self.callback()