diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-22 16:31:47 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2008-04-22 16:31:47 +0000 |
| commit | b52a614903cab3c3b8d1a1eae871d3bdefa926ce (patch) | |
| tree | 0e063efc4b66e0239b53f877a0e8646444b2963e /lib/python/Plugins/Extensions/DVDPlayer/plugin.py | |
| parent | ef1a9823a5da0c626766dad7afc858e15b57a2d0 (diff) | |
| download | enigma2-b52a614903cab3c3b8d1a1eae871d3bdefa926ce.tar.gz enigma2-b52a614903cab3c3b8d1a1eae871d3bdefa926ce.zip | |
some dvd player changes (resume isnt working yet)
Diffstat (limited to 'lib/python/Plugins/Extensions/DVDPlayer/plugin.py')
| -rw-r--r-- | lib/python/Plugins/Extensions/DVDPlayer/plugin.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py index fd048695..a44d042b 100644 --- a/lib/python/Plugins/Extensions/DVDPlayer/plugin.py +++ b/lib/python/Plugins/Extensions/DVDPlayer/plugin.py @@ -339,10 +339,12 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarC def __menuOpened(self): self.hide() self.in_menu = True + self["NumberActions"].setEnabled(False) def __menuClosed(self): self.show() self.in_menu = False + self["NumberActions"].setEnabled(True) def setChapterLabel(self): chapterLCD = "Menu" @@ -529,6 +531,12 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarC self.restore_infobar_seek_config() self.session.nav.playService(self.oldService) + def playLastCB(self, answer): # overwrite infobar cuesheet function + print "playLastCB", answer, self.resume_point +# if answer == True: +# self.doSeek(self.resume_point) + self.hideAfterResume() + def showAfterCuesheetOperation(self): if not self.in_menu: self.show() @@ -537,6 +545,13 @@ class DVDPlayer(Screen, InfoBarBase, InfoBarNotifications, InfoBarSeek, InfoBarC print "DVDCreateSummary" return DVDSummary +#override some InfoBarSeek functions + def doEof(self): + self.setSeekState(self.SEEK_STATE_PLAY) + + def calcRemainingTime(self): + return 0 + def main(session, **kwargs): session.open(DVDPlayer) |
