[Android] Playing a new video on TV while in PiP opens the player again

Nicolas Pomepuy git at videolan.org
Mon Sep 14 08:06:35 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Sep 11 07:48:46 2020 +0200| [19ac612727084c342deca81aee6e3d9828406455] | committer: Nicolas Pomepuy

Playing a new video on TV while in PiP opens the player again

> https://code.videolan.org/videolan/vlc-android/commit/19ac612727084c342deca81aee6e3d9828406455
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 190d8e055..8fb38dc00 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -318,6 +318,10 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
                 skipMedia()
                 return
             }
+            //PiP TV
+            if (AndroidDevices.isTv && isVideoPlaying) {
+                VideoPlayerActivity.startOpened(ctx, mw.uri, currentIndex)
+            }
             val title = mw.getMetaLong(MediaWrapper.META_TITLE)
             if (title > 0) uri = "$uri#$title".toUri()
             val start = getStartTime(mw)



More information about the Android mailing list