Kaydet (Commit) 254f7e8f authored tarafından Minh Ngo's avatar Minh Ngo Kaydeden (comit) Michael Meeks

Disabling the mouse handling event in the VLC engine.

Change-Id: I348f7830b2ed86ddc21a48e0b482adfafc0175cd
üst fb89c0c5
...@@ -19,7 +19,7 @@ const char * const VLC_ARGS[] = { ...@@ -19,7 +19,7 @@ const char * const VLC_ARGS[] = {
"-Vdummy", "-Vdummy",
"--snapshot-format=png", "--snapshot-format=png",
"--ffmpeg-threads", "--ffmpeg-threads",
"--verbose=-1", "--verbose=2"
}; };
const int MS_IN_SEC = 1000; // Millisec in sec const int MS_IN_SEC = 1000; // Millisec in sec
...@@ -33,6 +33,7 @@ VLCPlayer::VLCPlayer( const rtl::OUString& url ) ...@@ -33,6 +33,7 @@ VLCPlayer::VLCPlayer( const rtl::OUString& url )
, mUrl( url ) , mUrl( url )
, mPlaybackLoop( false ) , mPlaybackLoop( false )
{ {
mPlayer.setMouseHandling(false);
} }
const rtl::OUString& VLCPlayer::url() const const rtl::OUString& VLCPlayer::url() const
......
...@@ -30,6 +30,7 @@ namespace VLC ...@@ -30,6 +30,7 @@ namespace VLC
unsigned int i_height ); unsigned int i_height );
void ( *libvlc_media_player_set_xwindow ) ( libvlc_media_player_t *p_mi, uint32_t drawable ); void ( *libvlc_media_player_set_xwindow ) ( libvlc_media_player_t *p_mi, uint32_t drawable );
unsigned ( *libvlc_media_player_has_vout ) ( libvlc_media_player_t *p_mi ); unsigned ( *libvlc_media_player_has_vout ) ( libvlc_media_player_t *p_mi );
void ( *libvlc_video_set_mouse_input ) ( libvlc_media_player_t *p_mi, unsigned on);
ApiMap VLC_PLAYER_API[] = ApiMap VLC_PLAYER_API[] =
{ {
...@@ -49,7 +50,8 @@ namespace VLC ...@@ -49,7 +50,8 @@ namespace VLC
SYM_MAP( libvlc_audio_get_mute ), SYM_MAP( libvlc_audio_get_mute ),
SYM_MAP( libvlc_video_take_snapshot ), SYM_MAP( libvlc_video_take_snapshot ),
SYM_MAP( libvlc_media_player_set_xwindow ), SYM_MAP( libvlc_media_player_set_xwindow ),
SYM_MAP( libvlc_media_player_has_vout ) SYM_MAP( libvlc_media_player_has_vout ),
SYM_MAP( libvlc_video_set_mouse_input )
}; };
} }
...@@ -89,6 +91,11 @@ namespace VLC ...@@ -89,6 +91,11 @@ namespace VLC
return libvlc_media_player_get_time( mPlayer ); return libvlc_media_player_get_time( mPlayer );
} }
void Player::setMouseHandling(bool flag)
{
libvlc_video_set_mouse_input( mPlayer, flag );
}
bool Player::isPlaying() const bool Player::isPlaying() const
{ {
return libvlc_media_player_is_playing( mPlayer ) == 1; return libvlc_media_player_is_playing( mPlayer ) == 1;
......
...@@ -63,6 +63,8 @@ namespace VLC ...@@ -63,6 +63,8 @@ namespace VLC
return mPlayer; return mPlayer;
} }
void setMouseHandling(bool flag);
private: private:
libvlc_media_player_t *mPlayer; libvlc_media_player_t *mPlayer;
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment