I'm using VLC 1.1 RC to display a video in a QWidget (Qt 4.5.2.) on Win32.
It seems that VLC swallows all mouse clicks on the widget set with libvlc_media_player_set_hwnd. No MousePressed, MouseDoubleClick, MouseReleased event is fired on the underlaying widget...
david
Yes, vlc spawns child windows attached to the window you pass with libvlc_media_player_set_hwnd. And Win32 only delivers mouse events to the visible windows, that happen to be the vlc subwindows.
But, you can do the following to regain control of those mouse events :
- tell vlc to not process them at all (with libvlc_video_set_mouse_input set to false)
- "spy" on vlc subwindows for mouse events via the global hooks available in the Win32 api. (see
http://msdn.microsoft.com/en-us/library ... 85%29.aspx)
A recent thread addressed this very issue in Java (
viewtopic.php?f=32&t=75768&p=249092) with some success.
Maybe QT4 has also got some wrapper to MS global hooks .... (to be checked)
I discovered the same Problem with a simple Test Application on Win32.
Doubleclick on video surface has no effect anymore.
Hope we don't need to handle this now by ourselfs...it was really helpfully!
DsChAeK
This is a quite different issue. Fullscreen was changed quite a bit in vlc1.1, and I fear that there might be some side effect for libvlc on Win32 with the new vout window provider api ... (need more investigation). If so, that would be a bug
Erwan10