This commit is contained in:
yumoqing 2022-09-19 14:13:21 +08:00
parent adff54b214
commit f3150d9672
2 changed files with 4 additions and 2 deletions

View File

@ -354,15 +354,17 @@ class FFVideo(WidgetReady, Image):
self.video_ts = val self.video_ts = val
self._get_video_info() self._get_video_info()
self.timepass += self.timeperiod
self._position = self._player.get_pts() self._position = self._player.get_pts()
self._volume = self._player.get_volume() self._volume = self._player.get_volume()
"""
self.timepass += self.timeperiod
if self.timepass < self.video_ts: if self.timepass < self.video_ts:
return return
if self.timepass > self.video_ts +0.2: if self.timepass > self.video_ts +0.2:
self.last_frame = None self.last_frame = None
return return
"""
self.status = 'play' self.status = 'play'
img, t = self.last_frame img, t = self.last_frame

View File

@ -1 +1 @@
__version__ = '0.3.15' __version__ = '0.3.16'