Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 def askLeavePlayer(self):
     if config.AdvancedMovieSelection.exitkey.value:
         self.exitCB([None, "exit"])
     else:
         eDVDPlayer.askLeavePlayer(self)
Пример #4
0
 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()
Пример #5
0
 def askLeavePlayer(self):
     if config.AdvancedMovieSelection.exitkey.value:
         self.exitCB([None, "exit"])
     else:
         eDVDPlayer.askLeavePlayer(self)
Пример #6
0
 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()