libvlc_set_fullscreen() works only when the video is stopped
Posted: 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:
Tested with VLC 2.0.8 on KUbuntu 13.04 and 2.1.4 on KUbuntu 14.04.
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);