mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Removed default input handlers from vlc player
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
CVlcPlayer::CVlcPlayer()
|
CVlcPlayer::CVlcPlayer(QWidget* parent) : QWidget(parent)
|
||||||
{
|
{
|
||||||
// initialize libVLC
|
// initialize libVLC
|
||||||
m_pVlcInstance = libvlc_new(0, NULL);
|
m_pVlcInstance = libvlc_new(0, NULL);
|
||||||
@ -14,6 +14,9 @@ CVlcPlayer::CVlcPlayer()
|
|||||||
}
|
}
|
||||||
// initialize vlc media player
|
// initialize vlc media player
|
||||||
m_pVlcPlayer = libvlc_media_player_new(m_pVlcInstance);
|
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
|
// get event manager
|
||||||
m_pEventManager = libvlc_media_player_event_manager(m_pVlcPlayer);
|
m_pEventManager = libvlc_media_player_event_manager(m_pVlcPlayer);
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@ class CVlcPlayer : public QWidget
|
|||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
CVlcPlayer();
|
CVlcPlayer(QWidget* parent = nullptr);
|
||||||
virtual ~CVlcPlayer();
|
virtual ~CVlcPlayer();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user