[Android] Check the interactive flag to avoid showing hud on Blu-Ray

Nicolas Pomepuy git at videolan.org
Mon Apr 27 15:32:54 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Apr 24 13:05:09 2020 +0200| [0d342d729eb2ff1155aeb0a0f8034cf4805c92e9] | committer: Nicolas Pomepuy

Check the interactive flag to avoid showing hud on Blu-Ray

> https://code.videolan.org/videolan/vlc-android/commit/0d342d729eb2ff1155aeb0a0f8034cf4805c92e9
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt            | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 9dc170e01..cb332e7bd 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -2601,7 +2601,10 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
                         break
                     }
                 }
-                isNavMenu = menuIdx == currentIdx
+                val interactive = service?.mediaplayer?.let {
+                    it.titles[it.title].isInteractive
+                } ?: false
+                isNavMenu = menuIdx == currentIdx || interactive
             }
 
             if (isNavMenu) {



More information about the Android mailing list