diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-14 21:49:09 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-14 21:49:09 +0000 |
| commit | 759a94e910f4f45d11aac2635fc0b6df1149cd3c (patch) | |
| tree | 775cc9355cd6fae3bfd09e0b3dd5040ae4fd97f2 | |
| parent | 9764dd91d335a6e02384029c90911f1d500ffa97 (diff) | |
| download | enigma2-759a94e910f4f45d11aac2635fc0b6df1149cd3c.tar.gz enigma2-759a94e910f4f45d11aac2635fc0b6df1149cd3c.zip | |
audio selection - fake
| -rw-r--r-- | data/keymap.xml | 6 | ||||
| -rw-r--r-- | lib/python/Screens/InfoBar.py | 13 |
2 files changed, 17 insertions, 2 deletions
diff --git a/data/keymap.xml b/data/keymap.xml index 59949962..82407908 100644 --- a/data/keymap.xml +++ b/data/keymap.xml @@ -54,7 +54,7 @@ <!-- <key id="r" mapto="instantRecord" flags="m" /> --> <key id="r" mapto="showEPGList" flags="m" /> <key id="KEY_INFO" mapto="showEPGList" flags="m" /> - <key id="KEY_RED" mapto="instantRecord" flags="m" /> +<!-- <key id="KEY_RED" mapto="instantRecord" flags="m" /> --> <key id="1" mapto="zapUp" flags="mr" /> <key id="2" mapto="zapDown" flags="mr" /> <key id="KEY_M" mapto="mainMenu" flags="mr" /> @@ -68,6 +68,7 @@ <key id="KEY_OK" mapto="toggleShow" flags="m" /> <key id="KEY_EXIT" mapto="hide" flags="m" /> <key id="KEY_VIDEO" mapto="showMovies" flags="m" /> + <key id="KEY_AUDIO" mapto="audioSelection" flags="m" /> <key id="KEY_VOLUMEUP" mapto="volumeUp" flags="mr" /> <key id="KEY_VOLUMEDOWN" mapto="volumeDown" flags="mr" /> <key id="KEY_MUTE" mapto="volumeMute" flags="mr" /> @@ -86,6 +87,9 @@ <key id="KEY_YELLOW" mapto="pauseService" flags="m" /> <key id="KEY_GREEN" mapto="unPauseService" flags="m" /> + + <key id="KEY_RED" mapto="seekBack" flags="m" /> + <key id="KEY_BLUE" mapto="seekFwd" flags="m" /> </map> <map context="ChannelSelectActions"> diff --git a/lib/python/Screens/InfoBar.py b/lib/python/Screens/InfoBar.py index 6615d6f1..9076942b 100644 --- a/lib/python/Screens/InfoBar.py +++ b/lib/python/Screens/InfoBar.py @@ -132,6 +132,8 @@ class InfoBar(Screen): "seekFwd": self.seekFwd, "seekBack": self.seekBack, + + "audioSelection": self.audioSelection, }) # self["okbutton"] = Button("mainMenu", [self.mainMenu]) @@ -259,7 +261,7 @@ class InfoBar(Screen): def quit(self): # self.session.open(Standby, self) configfile.save() - quitMainloop() + quitMainloop(0) def stopCurrentRecording(self): print "remove entry" @@ -321,3 +323,12 @@ class InfoBar(Screen): def seekBack(self): self.doSeek(-1, 10000) + + def audioSelection(self): + service = self.session.nav.getCurrentService() + audio = service.audioTracks() + n = audio.getNumberOfTracks() + print "AUDIO TRACKS:" + for x in range(n): + i = audio.getTrackInfo(x) + print i.getDescription() |
