jaseg / python-mpv

Python interface to the awesome mpv media player
https://git.jaseg.de/python-mpv.git
Other
543 stars 68 forks source link

can i use python-mpv with Kivy Library ? #175

Closed Goyp95 closed 1 year ago

Goyp95 commented 3 years ago

How to import mpv player to kivy screen, any ideas? winId or winfo_id don't work ..

neinseg commented 3 years ago

If X11 embedding does not work, OpenGL may be an option. Kivy seems to have OpenGL API support. Here is an example of python-mpv embedding using OpenGL. [Here] is another example of python-mpv embedded into imgui via OpenGL, which I think is similar to your use case.

Goyp95 commented 3 years ago

Hey neinseg, thank for reply but the link [Here] that you gave don't work.

neinseg commented 3 years ago

Hmm, not sure what's up with github there. Here's the target URL:

https://github.com/dfaker/imgui_glfw_pythonmpv_demo/blob/main/main.py

jaseg commented 1 year ago

https://github.com/dfaker/imgui_glfw_pythonmpv_demo/blob/main/main.py