From 762d048b8da987487795cd234fcdd387cc105c38 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 21 Nov 2020 18:01:46 +0800 Subject: [PATCH] bugfix --- kivyblocks/newvideo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kivyblocks/newvideo.py b/kivyblocks/newvideo.py index 0597d82..f46b1df 100644 --- a/kivyblocks/newvideo.py +++ b/kivyblocks/newvideo.py @@ -38,7 +38,9 @@ class NewVideo(BGColorBehavior, Video): else: Window.allow_screensaver = True - # fix bug + # fix bug for android + # ValueError: None is not allowed for NewVideo.duration + """ def _on_video_frame(self, *largs): video = self._video if not video: @@ -50,3 +52,4 @@ class NewVideo(BGColorBehavior, Video): if not video.texture: return super()._on_video_frame(*largs) + """