def tick(self, offset=None):
if not self.initialized:
return
if xbmc.getCondVisibility('Window.IsActive(busydialog) + !Player.Caching'):
util.DEBUG_LOG('SeekDialog: Possible stuck busy dialog - closing')
xbmc.executebuiltin('Dialog.Close(busydialog,1)')
if time.time() > self.timeout and not self.hasDialog:
if not xbmc.getCondVisibility('Window.IsActive(videoosd) | Player.Rewinding | Player.Forwarding') and not self.playlistDialogVisible:
self.hideOSD()
try:
self.offset = offset or int(self.handler.player.getTime() * 1000)
except RuntimeError: # Playback has stopped
return
self.updateCurrent()
评论列表
文章目录