mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.75k stars 2.86k forks source link

C # (winform, WPF) calls libmpv and cannot receive mouse events normally #10952

Open DSxiaolong opened 1 year ago

DSxiaolong commented 1 year ago

mpv version : mpv-dev-x86_64-20221023-git-395b37b Windows Version : win10 x64 Qt Version : Qt5.12.6 VS Version : VS2017

I used Qt+libmpv to develop the player plug-in to call C # (in the form of COM components). In the video playing state, Qt cannot receive mouse events, and the interface is stuck. What is the problem? However, only Qt itself can call this COM component without this problem. Only in C # projects can there be such a problem. WPF is even more serious.

DSxiaolong commented 1 year ago

I used the OpenGL example in libmpv to develop the program. In winID mode, windows cannot be displayed normally in WPF, only OpenGL can. However, in OpenGL mode, mouse events cannot be received normally during video playback. This is only the case when calling in C #. Can this be solved?