This commit is contained in:
yumoqing 2020-11-21 18:01:46 +08:00
parent 16da3c9d85
commit 762d048b8d

View File

@ -38,7 +38,9 @@ class NewVideo(BGColorBehavior, Video):
else: else:
Window.allow_screensaver = True Window.allow_screensaver = True
# fix bug # fix bug for android
# ValueError: None is not allowed for NewVideo.duration
"""
def _on_video_frame(self, *largs): def _on_video_frame(self, *largs):
video = self._video video = self._video
if not video: if not video:
@ -50,3 +52,4 @@ class NewVideo(BGColorBehavior, Video):
if not video.texture: if not video.texture:
return return
super()._on_video_frame(*largs) super()._on_video_frame(*largs)
"""