how to use fullscreen with libvlc 1.1.9

This forum is about all development around libVLC.
sunnite_tsar
New Cone
New Cone
Posts: 8
Joined: 18 Aug 2010 07:27

how to use fullscreen with libvlc 1.1.9

Postby sunnite_tsar » 17 May 2011 14:49

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to use fullscreen with libvlc 1.1.9

Postby Rémi Denis-Courmont » 17 May 2011 17:12

Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sunnite_tsar
New Cone
New Cone
Posts: 8
Joined: 18 Aug 2010 07:27

Re: how to use fullscreen with libvlc 1.1.9

Postby sunnite_tsar » 22 May 2011 15:28

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to use fullscreen with libvlc 1.1.9

Postby Rémi Denis-Courmont » 25 May 2011 12:51

I am not very familiar with Win32 event handling.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

VlcUser1982
New Cone
New Cone
Posts: 4
Joined: 13 Jan 2011 22:06

Re: how to use fullscreen with libvlc 1.1.9

Postby VlcUser1982 » 25 May 2011 22:53

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?

sunnite_tsar
New Cone
New Cone
Posts: 8
Joined: 18 Aug 2010 07:27

Re: how to use fullscreen with libvlc 1.1.9

Postby sunnite_tsar » 27 May 2011 10:43

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

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to use fullscreen with libvlc 1.1.9

Postby Rémi Denis-Courmont » 27 May 2011 11:50

There is a function to turn off mouse events.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sunnite_tsar
New Cone
New Cone
Posts: 8
Joined: 18 Aug 2010 07:27

Re: how to use fullscreen with libvlc 1.1.9

Postby sunnite_tsar » 27 May 2011 14:23

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.

sunnite_tsar.
New Cone
New Cone
Posts: 1
Joined: 28 May 2011 11:49

Re: how to use fullscreen with libvlc 1.1.9

Postby sunnite_tsar. » 28 May 2011 12:00

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: how to use fullscreen with libvlc 1.1.9

Postby Rémi Denis-Courmont » 28 May 2011 15:22

If you do not use libvlc_media_palyer_set_hwnd(), and do not disable mouse events, it should work just fine.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Bradskey
New Cone
New Cone
Posts: 6
Joined: 14 Apr 2011 22:59

Re: how to use fullscreen with libvlc 1.1.9

Postby Bradskey » 29 May 2011 22:42

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.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 5 guests