Force libvlc to don't hide mouse cursor

This forum is about all development around libVLC.
hamedmasafi
New Cone
New Cone
Posts: 2
Joined: 18 Jul 2018 07:08

Force libvlc to don't hide mouse cursor

Postby hamedmasafi » 18 Jul 2018 07:13

I'm developing a video stream software, I'm using libvlc and qt-vlc for playing videos from network stream. Everything is good just one problem. When VlcMediaPlayer starts to playing, the mouse pointer hide over VlcWidgetVideo widget.

If mouse move around application it will be shown but only on the VlcWidgetVideo there are no mouse

My simple code is like that:

Code: Select all

auto _instance = new VlcInstance(VlcCommon::args(), this); auto _player = new VlcMediaPlayer(_instance); auto playerWidget = new VlcWidgetVideo(_player, this); auto _media = new VlcMedia(mediaUrl.toString(), _instance); _player->setVideoWidget(playerWidget); _player->play(); // mediaUrl is type of QUrl _player->open(_media);
Now, my question is that: How can I force qt-vlc to don't hide pointer? I want to mouse pointer be visible always. My development environment is:
  • CentOS 7.2 on VirtualBox
  • Qt 5.5
Excuse for my bad English

Note 1:
Two points:

Playing same stream video with vlc media player on same computer doesn't hide the cursor!
When I try to simulate the mouse pointer with a shape in QLabel the player widget flush by repeat

Note 2:

I dropped using of qt-vlc and used libvlc directly, But no changes! Mouse hide and some times it appear as a single black pixel

Note 3:

Running same code on debian 9 works fine

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: Force libvlc to don't hide mouse cursor

Postby mfkl » 18 Jul 2018 10:06

Like I told you on Stackoverflow, this might be an issue on their side and you should take it up with them https://github.com/vlc-qt/vlc-qt/issues/227
https://mfkl.github.io

mfkl
Developer
Developer
Posts: 740
Joined: 13 Jun 2017 10:41

Re: Force libvlc to don't hide mouse cursor

Postby mfkl » 18 Jul 2018 10:16

or try `--mouse-hide-timeout=<integer>` from https://wiki.videolan.org/VLC_command-line_help/
https://mfkl.github.io

hamedmasafi
New Cone
New Cone
Posts: 2
Joined: 18 Jul 2018 07:08

Re: Force libvlc to don't hide mouse cursor

Postby hamedmasafi » 26 Jul 2018 09:25

I've changed my source from vlc-qt to pure libvlc. But problem is still there.
As documentation says --mouse-hide-timeout is for full screen mode. My problem occur in normal window mode.
And also, I tried to use it, But no change.

Can anyone tell me why my code works fine on debian and not on centos? Vlc media player works fine on centos also


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 28 guests