Page 1 of 1

Force libvlc to don't hide mouse cursor

Posted: 18 Jul 2018 07:13
by hamedmasafi
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

Re: Force libvlc to don't hide mouse cursor

Posted: 18 Jul 2018 10:06
by mfkl
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

Re: Force libvlc to don't hide mouse cursor

Posted: 18 Jul 2018 10:16
by mfkl
or try `--mouse-hide-timeout=<integer>` from https://wiki.videolan.org/VLC_command-line_help/

Re: Force libvlc to don't hide mouse cursor

Posted: 26 Jul 2018 09:25
by hamedmasafi
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