+ self.helpList.append((self["actions"], "InfobarActions", [("showMovies", _("view recordings..."))]))
+ self.helpList.append((self["actions"], "InfobarActions", [("showRadio", _("hear radio..."))]))
+
+ self["CurrentTime"] = Clock()
+
+ def showTv(self):
+ self.showTvChannelList(True)
+
+ def showRadio(self):
+ if currentConfigSelectionElement(config.usage.e1like_radio_mode) == "yes":
+ self.showRadioChannelList(True)
+ else:
+ self.session.open(ChannelSelectionRadio)
+
+ def showMovies(self):
+ self.session.openWithCallback(self.movieSelected, MovieSelection)
+
+ def movieSelected(self, service):
+ if service is not None:
+ self.session.open(MoviePlayer, service)
+
+class MoviePlayer(InfoBarShowHide, \
+ InfoBarMenu, \
+ InfoBarServiceName, InfoBarSeek, InfoBarShowMovies, InfoBarAudioSelection, HelpableScreen, InfoBarNotifications,
+ InfoBarServiceNotifications, InfoBarPVRState, InfoBarCueSheetSupport, InfoBarSimpleEventView,
+ InfoBarSummarySupport, InfoBarTeletextPlugin, InfoBarSubtitleSupport, Screen):
+
+ ENABLE_RESUME_SUPPORT = True
+ ALLOW_SUSPEND = True
+
+ def __init__(self, session, service):
+ Screen.__init__(self, session)
+
+ self["actions"] = HelpableActionMap(self, "MoviePlayerActions",