def onFirstInit(self): if self.touchMode: util.DEBUG_LOG('Touch mode: ENABLED') self.setProperty('touch.mode','True') else: util.DEBUG_LOG('Touch mode: DISABLED') self.started = True self.propertyTimer = kodigui.PropertyTimer(self._winID,util.getSetting('overlay.timeout',0),'show.overlay','', callback=self.overlayTimerCallback) self.currentDetailsTimer = kodigui.PropertyTimer(self._winID,5,'show.current','') self.seekBarTimer = kodigui.PropertyTimer(self._winID,5,'show.seekbar','') self.channelList = kodigui.ManagedControlList(self,201,3) self.currentProgress = self.getControl(250) #Add item to dummy list - this list allows right click on video to bring up the context menu self.getControl(210).addItem(xbmcgui.ListItem('')) self.start()
def onFirstInit(self): self.pqueueList = kodigui.ManagedControlList(self, self.PQUEUE_LIST_ID, 14) self.setProperty('photo', 'script.plex/indicators/busy-photo.gif') self.getPlayQueue() self.start() self.osdTimer = kodigui.PropertyTimer(self._winID, 4, 'OSD', '', init_value=False, callback=self.osdTimerCallback) self.imageControl = self.getControl(600)
def _onFirstInit(self): self.resetTimeout() self.bigSeekHideTimer = kodigui.PropertyTimer(self._winID, 0.5, 'hide.bigseek') if self.handler.playlist: self.handler.playlist.on('change', self.updateProperties) self.seekbarControl = self.getControl(self.SEEK_IMAGE_ID) self.positionControl = self.getControl(self.POSITION_IMAGE_ID) self.bifImageControl = self.getControl(self.BIF_IMAGE_ID) self.selectionIndicator = self.getControl(self.SELECTION_INDICATOR) self.selectionBox = self.getControl(203) self.bigSeekControl = kodigui.ManagedControlList(self, self.BIG_SEEK_LIST_ID, 12) self.bigSeekGroupControl = self.getControl(self.BIG_SEEK_GROUP_ID) self.initialized = True self.setBoolProperty('subtitle.downloads', util.getSetting('subtitle_downloads', False)) self.updateProperties() self.videoSettingsHaveChanged() self.update()