Я новичок в kivy и python. Для проекта я хочу создать настольное приложение с KIVY, которое отображает видео. когда я запускаю свой код, я получаю сообщение об ошибке «невозможно создать playbin»
Может ли кто-нибудь мне помочь?
mainKivyApp.py
import kivy
from kivy.app import App
from kivy.uix.relativelayout import RelativeLayout
class video_player(RelativeLayout):
pass
class video(App):
def build(self):
return video_player()
if __name__ == "__main__":
video().run()
video.kv
<video_player>:
Video:
source: "../example.mp4"
play: True
кивый журнал:
[INFO ] Kivy: v1.10.1
[INFO ] Python: v3.6.8 (v3.6.8:3c6b436a57, Dec 24 2018, 02:04:31)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
[INFO ] Factory: 194 symbols loaded
[INFO ] Image: Providers: img_tex, img_imageio, img_dds, img_sdl2,
img_gif (img_pil, img_ffpyplayer ignored)
[INFO ] Window: Provider: sdl2
[INFO ] GL: Using the "OpenGL ES 2" graphics system
[INFO ] GL: Backend used <gl>
[INFO ] GL: OpenGL version <b'2.1 INTEL-12.4.7'>
[INFO ] GL: OpenGL vendor <b'Intel Inc.'>
[INFO ] GL: OpenGL renderer <b'Intel(R) Iris(TM) Plus Graphics 640'>
[INFO ] GL: OpenGL parsed version: 2, 1
[INFO ] GL: Shading version <b'1.20'>
[INFO ] GL: Texture max size <16384>
[INFO ] GL: Texture max units <16>
[INFO ] Window: auto add sdl2 input provider
[INFO ] Window: virtual keyboard not allowed, single mode, not docked
[INFO ] VideoGstplayer: Using Gstreamer 1.10.4.0
[INFO ] Video: Provider: gstplayer
[ERROR ] Image: Error loading texture ../example.mp4
[INFO ] Base: Start application main loop
[INFO ] Base: Leaving application in progress...