Page 1 of 1

how to use fullscreen with libvlc 1.1.9

Posted: 17 May 2011 14:49
by sunnite_tsar
Hi,all

In my former application using with libvlc1.0.5, if I doubleclick on the playing video Panel,It can auto become fullscreen and come back while doubleclick again. But in my current application using with libvlc1.1.9,I can't get the same result. Could you please give me some suggestions on this?

Thanks, Jerry

Re: how to use fullscreen with libvlc 1.1.9

Posted: 17 May 2011 17:12
by Rémi Denis-Courmont

Re: how to use fullscreen with libvlc 1.1.9

Posted: 22 May 2011 15:28
by sunnite_tsar
With the help of your link, I used the "full screen" both from VLC's and windows's API successfully without video playing. But when the video is playing, my application can't capture the "double click" from video panel.The "double click" is captured by VLC "VoutDisplayEvent".Could you please tell me how to retrive the "double click" from VLC "VoutDisplayEvent"? If the "double click" can't be retrived,could you please give me some suggestions? Below is part of my code:

void __fastcall TForm1::Panel1DblClick(TObject *Sender)
{
if(!isFull)
{
isFull=true;
::SetParent(Panel1->Handle,::GetDesktopWindow());
RECT rect;
::GetWindowRect(::GetDesktopWindow(),&rect);
SetWindowPos(Panel1->Handle,HWND_TOP, rect.left,rect.top,rect.right,rect.bottom,SWP_SHOWWINDOW);
}
else
{
isFull=false;
::SetParent(Panel1->Handle,Form1->Handle);
SetWindowPos(Panel1->Handle,HWND_TOP, oldRect.left,oldRect.top,oldRect.right,oldRect.bottom,SWP_SHOWWINDOW);
}
}

Thanks,Jerry

Re: how to use fullscreen with libvlc 1.1.9

Posted: 25 May 2011 12:51
by Rémi Denis-Courmont
I am not very familiar with Win32 event handling.

Re: how to use fullscreen with libvlc 1.1.9

Posted: 25 May 2011 22:53
by VlcUser1982
I am having the same problem. There is a video.fullscreen property on the control as well as a togglefullscreen, neither of which do anything. Help?

Re: how to use fullscreen with libvlc 1.1.9

Posted: 27 May 2011 10:43
by sunnite_tsar
Here is the key issue. When the video is playing, the doubleclick is captured by vlc, and my application can't capture it anymore. Below is vlc log:

0272d24c] main generic debug: VoutDisplayEvent 'mouse button' 0 t=8
0272d24c] main generic debug: VoutDisplayEvent 'mouse button' 0 t=9
0272d24c] main generic debug: VoutDisplayEvent 'double click'
00377804] mkv libvlc debug: Event Key

Re: how to use fullscreen with libvlc 1.1.9

Posted: 27 May 2011 11:50
by Rémi Denis-Courmont
There is a function to turn off mouse events.

Re: how to use fullscreen with libvlc 1.1.9

Posted: 27 May 2011 14:23
by sunnite_tsar
yes,we can use libvlc_video_set_mouse_input(p_media_player1,false),but the doubleclick can't captured neither by vlc nor my application.

Re: how to use fullscreen with libvlc 1.1.9

Posted: 28 May 2011 12:00
by sunnite_tsar.
Hi, experts,

Please help to download zip file from here: https://www.yousendit.com/download/dkJv ... QUx2Wmc9PQ , this link will be expired till Jun.4,2011

in the zip file, fullscren fail.flv file is screen capeture movie which may give you more hits what we are facing now.

You may duplicate this issue by unzip vlc_test.zip file into VLC 1.1.9 folder,

- run vlc_test.exe

- click "open" to open a movie clip such like Win7 demo file wildlife.wmv

- now double click the black area of the window, fullscreen is ok

- click "play", double click can't get fullscreen anymore.

- VLC log shows

[06bd0d28] main generic debug: VoutDisplayEvent 'mouse button' 0 t=8
[06bd0d28] main generic debug: VoutDisplayEvent 'mouse button' 0 t=9
[06bd0d28] main generic debug: VoutDisplayEvent 'double click'


Could you please help to take a look source file “source.c" in the zip file and advise how we can get fullscreen by double click?

Appreciated team's great support.

Re: how to use fullscreen with libvlc 1.1.9

Posted: 28 May 2011 15:22
by Rémi Denis-Courmont
If you do not use libvlc_media_palyer_set_hwnd(), and do not disable mouse events, it should work just fine.

Re: how to use fullscreen with libvlc 1.1.9

Posted: 29 May 2011 22:42
by Bradskey
This has been discussed over the past year and the hints are on the forum. Basically the work-around involves reparenting for the fullscreen part and windows global hooks for capturing the double-clicks. I have implemented this in a simple WinForms control wrapper I posted here a few weeks ago. My implementation is .NET of course but it's just invoking Win32 stuff for the hooks, so you should be able to figure it out:

http://www.datafilehost.com/download-99964dbb.html

Discussed in this thread:

viewtopic.php?f=32&t=76643

What I observed is that if you are playing a playlist of media of different types you may have to re-install the hooks between playlist items, as threads seem to get created and destroyed if the codec changes, etc. This is implemented in my wrapper.