[vlmc-devel] VLCMediaPlayer: Add a binding to libvlc_..._title_display
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jan 28 23:33:34 CET 2014
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan 28 22:19:51 2014 +0200| [880c06822de07e30af66da8a23fc18f99b30a718] | committer: Hugo Beauzée-Luyssen
VLCMediaPlayer: Add a binding to libvlc_..._title_display
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=880c06822de07e30af66da8a23fc18f99b30a718
---
src/LibVLCpp/VLCMediaPlayer.cpp | 5 +++++
src/LibVLCpp/VLCMediaPlayer.h | 2 ++
2 files changed, 7 insertions(+)
diff --git a/src/LibVLCpp/VLCMediaPlayer.cpp b/src/LibVLCpp/VLCMediaPlayer.cpp
index 768e9e8..d8f234f 100644
--- a/src/LibVLCpp/VLCMediaPlayer.cpp
+++ b/src/LibVLCpp/VLCMediaPlayer.cpp
@@ -342,6 +342,11 @@ void MediaPlayer::setAudioOutput(const char *module)
libvlc_audio_output_set( m_internalPtr, module );
}
+void MediaPlayer::disableTitle()
+{
+ libvlc_media_player_set_video_title_display( *this, libvlc_position_disable, 0 );
+}
+
void
MediaPlayer::configureWaitForEvent( const QList<int> &toWait, const QList<int> &cancel,
CheckEventCallback callback )
diff --git a/src/LibVLCpp/VLCMediaPlayer.h b/src/LibVLCpp/VLCMediaPlayer.h
index 1be3924..8f6c442 100644
--- a/src/LibVLCpp/VLCMediaPlayer.h
+++ b/src/LibVLCpp/VLCMediaPlayer.h
@@ -26,6 +26,7 @@
#include <QList>
#include <QMutex>
#include <QObject>
+#include <QString>
#include <QWaitCondition>
#include "VLCpp.hpp"
@@ -80,6 +81,7 @@ namespace LibVLCpp
int getNbVideoTrack();
void setKeyInput( bool enabled );
void setAudioOutput(const char* module);
+ void disableTitle();
/**
* @brief configure the usage of waitForEvent.
More information about the Vlmc-devel
mailing list