def doSeek(self, pts): length = self.getSeekLength() if length and length < pts: # PTS is behind the movie length self.doSeekEOF() else: # Call baseclass function InfoBarSeek.doSeek(self, pts) if pts and config.usage.show_infobar_on_skip.value: # InfoBarSeek self.showAfterSeek()
def doSeekEOF(self): # Stop one second before eof : 1 * 90 * 1000 state = self.seekstate play = self.getSeekPlayPosition() length = self.getSeekLength() end = length and length - 2 * 90000 # Validate play and end values if play and end and play < end and 0 < end: # InfoBarSeek InfoBarSeek.doSeek(self, end) # If player is in pause mode do not call eof if state != self.SEEK_STATE_PAUSE: InfoBarSeek._InfoBarSeek__evEOF(self)