Here is a piece of code. Is pascal but sure you'll understand:
Code: Select all
//Initialize player:
libvlc_exception_init(VLCError);
VLC := libvlc_new( 2, @Args, VLCError);
mediaplayer:=libvlc_media_player_new(VLC,VLCError);
libvlc_media_player_set_hwnd(mediaplayer,DrawHandle,VLCError);
//Play video
media:=libvlc_media_new(VLC,filename,VLCError);
libvlc_media_player_set_media(mediaplayer[indicePlayer],media,VLCError);
libvlc_media_release(media);
libvlc_media_player_play(mediaplayer,VLCError)
Any ideas why the mouse event is not working??
Thanks in advance.