aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 21:13:49 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-12-21 21:13:49 +0000
commit1b1a1efbe9a61b6f05d46821b4d22f8e5c84a931 (patch)
tree22ef28e1ad0c33bb9121228f665586f85f2663f8 /lib/python
parenta8f5cf18bfbafa9f0850df2f6a1de60d89e820bb (diff)
downloadenigma2-1b1a1efbe9a61b6f05d46821b4d22f8e5c84a931.tar.gz
enigma2-1b1a1efbe9a61b6f05d46821b4d22f8e5c84a931.zip
show movieSelection on up/down keys in movie player
TODO move the selection to the currently playing movie
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/InfoBar.py7
-rw-r--r--lib/python/Screens/InfoBarGenerics.py9
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py
index b28ce515..23754824 100644
--- a/lib/python/Screens/InfoBar.py
+++ b/lib/python/Screens/InfoBar.py
@@ -80,3 +80,10 @@ class MoviePlayer(Screen, InfoBarVolumeControl, InfoBarShowHide, InfoBarPowerKey
if answer == True:
self.session.nav.playService(self.lastservice)
self.close()
+
+ def showMovies(self):
+ self.session.openWithCallback(self.movieSelected, MovieSelection)
+
+ def movieSelected(self, service):
+ if service is not None:
+ self.session.nav.playService(service)
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py
index 922f8ab5..0fcb6ba9 100644
--- a/lib/python/Screens/InfoBarGenerics.py
+++ b/lib/python/Screens/InfoBarGenerics.py
@@ -478,6 +478,9 @@ class InfoBarPVR:
"seekFwd": (self.seekFwd, "skip forward"),
"seekBack": (self.seekBack, "skip backward"),
+
+ "up": (self.showMovies, "movie list"),
+ "down": (self.showMovies, "movie list")
})
self.seekstate = self.SEEK_STATE_PLAY
@@ -486,6 +489,12 @@ class InfoBarPVR:
self.skipinterval = 500 # 500ms skip interval
self.onClose.append(self.delSeekTimer)
+ def up(self):
+ pass
+
+ def down(self):
+ pass
+
def delSeekTimer(self):
del self.seekTimer