def onPlayBackStarted(self):
xbmc.log("Kodi Lifx: DEBUG playback started called on player")
playlist = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
self.playlistlen = playlist.size()
self.playlistpos = playlist.getposition()
if self.isPlayingVideo() and not self.playingvideo:
self.playingvideo = True
self.duration = self.getTotalTime()
self.movie = xbmc.getCondVisibility('VideoPlayer.Content(movies)')
global credits_triggered
credits_triggered = False
if self.movie and self.duration != 0: #only try if its a movie and has a duration
get_credits_info(self.getVideoInfoTag().getTitle(), self.duration) # TODO: start it on a timer to not block the beginning of the media
logger.debuglog("credits_time: %r" % credits_time)
self.timer = RepeatedTimer(1, self.checkTime)
state_changed("started", self.duration)
default.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录