[vlc-devel] How to do fullscreen in 1.1.x with libvlc API
Jacques Boileau
jboileau at gmail.com
Tue Nov 9 16:31:34 CET 2010
Hi Rémi,
Thanks for the response.
> With Win32, full screen mode must be implemented directly in the
> application if libvlc_media_player_set_hwnd() was used.
Understood. But in case it is thought otherwise, this is new to 1.1.x
and is a regression from LibVLC 1.0.5 that I used prior to switching
to 1.1.3. In 1.0.5 you can use libvlc_toggle_fullscreen() even if you
have used libvlc_media_player_set_hwnd() to re parent the window.
I would certainly volunteer looking at, and comparing the code from
both version in the hope of coming up with a solution (patch). Unless
to your knowledge, 1.1.x's new architecture prohibits any possible
fix. Let me know. And if possible, indication where in the sources
this takes place would be appreciated.
Thanks for your help,
Jacques Boileau
2010/11/9 Rémi Denis-Courmont <remi at remlab.net>:
>
> On Mon, 8 Nov 2010 17:54:54 -0500, Jacques Boileau <jboileau at gmail.com>
> wrote:
>> I believe the fullscreen mode has changed in 1.1.x. If I call the full
>> screen API of libvlc nothing happens.
>
> I have not tested it but it should work just fine provided the video is
> _not_ embedded into another widget.
> Of course, if it is embedded, the full screen flag will have no effects
> because:
> - on X11: the window managers does not track non-top windows,
> - on Win32: the LibVLC "drawable" plugin does not implement full screen
> toggle at all.
>
>> I read the documentation that talks of reparenting the window
>
> On X11, the embedding window must be a top window at the time full screen
> mode is requested. To that end, that window must be re-parented to the
> root. And yes, I am paraphrasing the documentation, because there really
> are only so many ways to explain this.
>
>> but can't seem to understand what I should do.
>> Any help in getting fullscreen mode back in my libvlc based
>> application under win32 would be greatly appreciated.
>
> With Win32, full screen mode must be implemented directly in the
> application if libvlc_media_player_set_hwnd() was used.
>
> --
> Rémi Denis-Courmont
> http://www.remlab.net
> http://fi.linkedin.com/in/remidenis
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list