[Android] Playing a new video on TV while in PiP opens the player again
Nicolas Pomepuy
git at videolan.org
Wed Oct 21 09:02:40 CEST 2020
vlc-android | branch: 3.3.x | Nicolas Pomepuy <nicolas at videolabs.io> | Fri Sep 11 07:48:46 2020 +0200| [c725c95d9dca94e34470a2d408bc083c9e636842] | committer: Nicolas Pomepuy
Playing a new video on TV while in PiP opens the player again
(cherry picked from commit 19ac612727084c342deca81aee6e3d9828406455)
> https://code.videolan.org/videolan/vlc-android/commit/c725c95d9dca94e34470a2d408bc083c9e636842
---
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 190d8e055e..8fb38dc00b 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