LOG error loading <"video">

207 views
Skip to first unread message

陳宜杰

unread,
Nov 12, 2022, 5:29:52 AM11/12/22
to Kivy users support

Hello,I encounter a difficulty,my CODE

--------------------------------------------------------------------------

from kivy.app import App
from kivy.uix.video import Video
from kivy.uix.widget import Widget


class VideoWindow(App):
    def build(self):

        video = Video(source='god.avi')
        video.state = 'play'
        video.options = {'eos': 'loop'}

        video.allow_stretch = True
        return video


if __name__ == "__main__":
    window = VideoWindow()
    window.run()

--------------------------------------------------------------------------

and the LOG

--------------------------------------------------------------------------

[ERROR  ] [Image       ] Error loading <god.avi>

--------------------------------------------------------------------------

Even though it is an ERROR,but the video can still play normally in PC.

And the question is when I use buildozer to build package into an apk file and run it in an android phone,it will unexpectedly quit.

What should I do to avoid the unexpectedly quit or fix the ERROR log?

Thank you for answering!

Elliot Garbus

unread,
Nov 12, 2022, 11:11:46 AM11/12/22
to kivy-...@googlegroups.com

That ERROR in the log is normal behavior.  The video player is derived from Image, and can display still images or video.  The Video Widget first attempts to load the image, if it fails, the error gets logged then it attempts to play the video.

 

You might find this helpful: https://github.com/Android-for-Python/Android-for-Python-Users

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b0c93aca-122c-4934-bd53-da40d7fe8340n%40googlegroups.com.

 

Reply all
Reply to author
Forward
0 new messages