[vlc-devel] [PATCH] qt: Autoplay video when entering fullscreen

Vaishnav Sivadas vaishnavsivadas at gmail.com
Sun Jul 15 15:40:01 CEST 2018


Autoplays a video upon entering full screen which enhances UX

fixes #8533
---
 modules/gui/qt/input_manager.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/modules/gui/qt/input_manager.cpp b/modules/gui/qt/input_manager.cpp
index 4c28933395..c94cffe164 100644
--- a/modules/gui/qt/input_manager.cpp
+++ b/modules/gui/qt/input_manager.cpp
@@ -1287,5 +1287,11 @@ int MainInputManager::PLItemRemoved( vlc_object_t *obj, const char *,
 void MainInputManager::changeFullscreen( bool new_val )
 {
     if ( var_GetBool( THEPL, "fullscreen" ) != new_val)
+    {
         var_SetBool( THEPL, "fullscreen", new_val );
+    }
+    if (new_val)
+    {
+        playlist_Play( THEPL );
+    }
 }
-- 
2.17.1



More information about the vlc-devel mailing list