This commit is contained in:
yumoqing 2022-09-08 17:58:13 +08:00
parent f43c8e8dcb
commit a2148f9585
2 changed files with 9 additions and 8 deletions

View File

@ -135,14 +135,15 @@ class FFVideo(WidgetReady, Image):
'audio', 'open', self.audio_id)
self.seek(self.position)
self.playing = True
if self.duration > 0:
p = self._position / self.duration * self.width
self.position = self._position
with self.canvas.after:
Color(1,1,1,1)
Line()
Line(points=[0, 0, self.width, 0], width=1)
Color(1,0,0,1)
Line(points=[0,2,p,0], width=2)
self.position = self._position
def __del__(self):
if self._update_task:

View File

@ -1 +1 @@
__version__ = '0.3.3'
__version__ = '0.3.4'