Qt5 widows/Mac and getting maousclicks onto the video

This forum is about all development around libVLC.
geostein8888
Cone that earned his stripes
Cone that earned his stripes
Posts: 142
Joined: 15 Dec 2010 11:32

Qt5 widows/Mac and getting maousclicks onto the video

Postby geostein8888 » 06 May 2017 19:45

Hello,
I have a vide app made with Qt5 (Windows and Mac) and need to receive the clicks the user makes on the video screen, I do not need the position, only the info, that he clicked onto the video.
I tried setting this

Code: Select all

void libvlc_video_set_mouse_input( libvlc_media_player_t *p_mi, unsigned on );
to false, but I still do not get my clicks.
Is there any trick I have to do?

thanks for any help
Georg

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Qt5 widows/Mac and getting maousclicks onto the video

Postby Rémi Denis-Courmont » 06 May 2017 22:04

Be sure to disable mouse input before video playback starts. I don't know if that function is implemented on Windows and/or Mac though.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

geostein8888
Cone that earned his stripes
Cone that earned his stripes
Posts: 142
Joined: 15 Dec 2010 11:32

Re: Qt5 widows/Mac and getting maousclicks onto the video

Postby geostein8888 » 07 May 2017 07:03

I thought the function I called is doing exactly this (libvlc_video_set_mouse_input(this->vlcPlayer, false);) or is there another function to disable the mouse input?

Georg

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Qt5 widows/Mac and getting maousclicks onto the video

Postby Rémi Denis-Courmont » 07 May 2017 08:36

No, that's the one.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 18 guests