From 759a94e910f4f45d11aac2635fc0b6df1149cd3c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 14 Nov 2005 21:49:09 +0000 Subject: [PATCH] audio selection - fake --- data/keymap.xml | 6 +++++- 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 @@ - + @@ -68,6 +68,7 @@ + @@ -86,6 +87,9 @@ + + + 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() -- 2.30.2