VlcMediaPlayer::VlcMediaPlayer(VlcInstance *instance) : QObject(instance) { _vlcMediaPlayer = libvlc_media_player_new(instance->core()); _vlcEvents = libvlc_media_player_event_manager(_vlcMediaPlayer); /* Disable mouse and keyboard events */ libvlc_video_set_key_input(_vlcMediaPlayer, false); libvlc_video_set_mouse_input(_vlcMediaPlayer, false); VlcError::showErrmsg(); _vlcAudio = new VlcAudio(this); _vlcVideo = new VlcVideo(this); #if LIBVLC_VERSION >= 0x020200 _vlcEqualizer = new VlcEqualizer(this); #endif _videoWidget = 0; _media = 0; createCoreConnections(); VlcError::showErrmsg(); }
VlcMediaPlayer::VlcMediaPlayer(VlcInstance *instance) : QObject(instance) { _vlcMediaPlayer = libvlc_media_player_new(instance->core()); /* Disable mouse and keyboard events */ libvlc_video_set_key_input(_vlcMediaPlayer, false); libvlc_video_set_mouse_input(_vlcMediaPlayer, false); VlcError::errmsg(); _vlcAudio = new VlcAudio(this); _vlcVideo = new VlcVideo(this); _check = new QTimer(this); connect(_check, SIGNAL(timeout()), this, SLOT(emitStatus())); _check->start(300); }