def exitCB(self, answer): if answer is not None: if answer[1] == "browser": #TODO check here if a paused dvd playback is already running... then re-start it... #else if self.service: self.service = None from MovieSelection import MovieSelection ref = self.session.nav.getCurrentlyPlayingServiceReference() self.session.openWithCallback(self.newServiceSelected, MovieSelection, ref, True) return eDVDPlayer.exitCB(self, answer)
def askLeavePlayer(self): if config.AdvancedMovieSelection.exitkey.value: self.exitCB([None, "exit"]) else: eDVDPlayer.askLeavePlayer(self)
def __init__(self, session, service): DVDCutListSupport.__init__(self, service) eDVDPlayer.__init__(self, session, dvd_filelist=service.getDVD()) PlayerBase.__init__(self, session) self.skinName = ["DVDPlayerExtended", "DVDPlayer"] self.addPlayerEvents()