Esempio n. 1
0
    def __init__(self, session):
        Screen.__init__(self, session)

        self.vbcallback = None
        self.vbhandler = VBHandler(session)
        self.vbserver = VBServerThread()
        self.vbserver.open(1)
        self.vbserver.start()

        # comment for dev
        self.restart_browser()
        vbcfg.LOG("browser start")

        self._timer_infobar = eTimer()
        self._timer_infobar.callback.append(self._cb_register_infobar)
        self._timer_infobar.start(1000)

        self._event = ServiceEventTracker(screen=self,
                                          eventmap={
                                              iPlayableService.evHBBTVInfo:
                                              self._cb_ait_detected,
                                              iPlayableService.evUpdatedInfo:
                                              self._cb_info_updated
                                          })
        self._applicationList = None
        self._app_info = None

        try:
            from Screens.InfoBarGenerics import gHbbtvApplication
            self.m_vuplus = gHbbtvApplication.getUseAit()
        except:
            self.m_vuplus = False
Esempio n. 2
0
    def __init__(self, session):
        Screen.__init__(self, session)

        self.vbcallback = None
        self.vbhandler = VBHandler(session)
        self.vbserver = VBServerThread()
        self.vbserver.open(1)
        self.vbserver.start()

        self._timer_infobar = eTimer()
        self._timer_infobar.callback.append(self._cb_register_infobar)
        self._timer_infobar.start(1000)

        self._timer_update_video_size = eTimer()
        self._timer_update_video_size.callback.append(
            self._cb_update_video_size)

        self._event = ServiceEventTracker(screen=self,
                                          eventmap={
                                              iPlayableService.evHBBTVInfo:
                                              self._cb_ait_detected,
                                              iPlayableService.evUpdatedInfo:
                                              self._cb_info_updated
                                          })
        self._applicationList = None
        self._app_info = None

        try:
            from Screens.InfoBarGenerics import gHbbtvApplication
            self.aitReader = gHbbtvApplication.getUseAit()
        except:
            self.aitReader = False