Catch mouse events vlc 1.1.5 and Qt

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
duva_
New Cone
New Cone
Posts: 2
Joined: 03 Dec 2010 04:44

Catch mouse events vlc 1.1.5 and Qt

Postby duva_ » 03 Dec 2010 06:12

I'm using windows xp sp 3, QT 4.7.0 and vlc 1.1.5 and i can't catch the mouse clic events over the video in a widget.

i have also tryed the libvlc_video_set_mouse_input( mp, false). That works fine in Linux, but not with Windows :-|

Did i miss something?

anyone, any ideas?

Thanks in advance.
Last edited by duva_ on 08 Dec 2010 20:00, edited 1 time in total.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Catch mouse events vlc 1.1.5 and Qt

Postby VLC_help » 03 Dec 2010 18:06

You might get better help from IRC channel.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Catch mouse events vlc 1.1.5 and Qt

Postby Jean-Baptiste Kempf » 03 Dec 2010 20:46

Probably not implemented correctly on Win32
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

erwan10
Developer
Developer
Posts: 415
Joined: 02 Nov 2008 23:16

Re: Catch mouse events vlc 1.1.5 and Qt

Postby erwan10 » 03 Dec 2010 22:24

Catching mouse events over the video on Win32 is possible, but not an easy task. (both vlc1.1.5 and vlc1.2)

VLC actually manages the video window in its own thread (with its own message queue). Therefore, the QT4 thread won't receive these events.

The Win32 API provides "global hooks" to spy on another message queue, and get a copy of those events (see http://msdn.microsoft.com/en-us/library ... 85%29.aspx). And it works very fine.

Perhaps QT4 offers some wrapper around these "global hooks" ?

duva_
New Cone
New Cone
Posts: 2
Joined: 03 Dec 2010 04:44

Re: Catch mouse events vlc 1.1.5 and Qt

Postby duva_ » 08 Dec 2010 19:51

Thanks for your time and answers =)


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests