libvlc_set_fullscreen() works only when the video is stopped

This forum is about all development around libVLC.
roxx
Blank Cone
Blank Cone
Posts: 17
Joined: 26 Aug 2014 17:30

libvlc_set_fullscreen() works only when the video is stopped

Postby roxx » 26 Aug 2014 17:41

Hi.

I'd like to make the video window fullscreen in runtime. The VLC window is embedded into Qt widget (KUbuntu 13.04 and Qt 4.8.5) with libvlc_media_player_set_xwindow(<Qt widget's native id>). Everything works fine except switching to the fullscreen mode in runtime.

I use libvlc_set_fullscreen(). But it works fine only when the video stream is stopped. When the video stream is played libvlc_set_fullscreen() does nothing. I don't see any error message in console. I use the following code to go to the fullscreen mode:

Code: Select all

libvlc_media_player_set_xwindow(media_player, 0); libvlc_set_fullscreen(media_player, true);
Tested with VLC 2.0.8 on KUbuntu 13.04 and 2.1.4 on KUbuntu 14.04.

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

Re: libvlc_set_fullscreen() works only when the video is sto

Postby Rémi Denis-Courmont » 26 Aug 2014 18:22

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


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 16 guests