libvlc API 1.1.0 , fullscreen with doubleclick not working
Posted: 23 Jun 2010 01:26
Hi everyone, I'm using libvlc.dll in delphi with a homemade wrapper. With version 1.0.5 and 1.0.6, playing a video, the mouse double click works as with VLCplayer, making the video fullscreen. I tried to do the same with libvlc 1.1.0, but double click is not working.
Here is a piece of code. Is pascal but sure you'll understand:
To make it work with 1.1.0, I just deleted the line with exception initialization and changed libvlc_media_new with libvlc_media_new_location
Any ideas why the mouse event is not working??
Thanks in advance.
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.