From c0ce4b34e08b0e05d44d4d13637d01d62303b249 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 15 Mar 2020 20:56:10 +0800 Subject: [PATCH] bugfix --- kivyblocks/vplayer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kivyblocks/vplayer.py b/kivyblocks/vplayer.py index 2ef3607..0f83d29 100644 --- a/kivyblocks/vplayer.py +++ b/kivyblocks/vplayer.py @@ -85,6 +85,8 @@ class BaseVPlayer(FloatLayout): self.playlist += lst def video_end(self,t,v): + self._video.unload() + return self.curplay += 1 self.curplay = self.curplay % len(self.playlist) self._video.source = self.playlist[self.curplay] @@ -259,6 +261,7 @@ class VPlayer(BaseVPlayer): def video_end(self,t,v): + super().video_end(t,v) self.curplay += 1 if not self.loop and self.curplay >= len(self.playlist): self.dispatch('on_playend')