def get_total_playback_time(self): if self.movie is None: return 0 qttime = self.movie.duration() return utils.qttime2secs(qttime)
def get_elapsed_playback_time(self): if self.movie: qttime = self.movie.currentTime() return utils.qttime2secs(qttime) else: return 0