Removed default input handlers from vlc player

This commit is contained in:
Mikhail Lobotskiy
2023-08-18 20:11:42 +04:00
parent 0e608bc8a6
commit 748f7d0a72
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@
#include <iostream>
CVlcPlayer::CVlcPlayer()
CVlcPlayer::CVlcPlayer(QWidget* parent) : QWidget(parent)
{
// initialize libVLC
m_pVlcInstance = libvlc_new(0, NULL);
@ -14,6 +14,9 @@ CVlcPlayer::CVlcPlayer()
}
// initialize vlc media player
m_pVlcPlayer = libvlc_media_player_new(m_pVlcInstance);
// disable event handling by vlc internals
libvlc_video_set_mouse_input(m_pVlcPlayer, false);
libvlc_video_set_key_input(m_pVlcPlayer, false);
// get event manager
m_pEventManager = libvlc_media_player_event_manager(m_pVlcPlayer);

View File

@ -11,7 +11,7 @@ class CVlcPlayer : public QWidget
Q_OBJECT
public:
CVlcPlayer();
CVlcPlayer(QWidget* parent = nullptr);
virtual ~CVlcPlayer();
public: