[Android] Continue playback when screencasting

Geoffrey Métais git at videolan.org
Tue Jan 29 13:07:54 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 29 11:01:04 2019 +0100| [d0eaf470c6bd80229f6c27d7b358e3b21f75dbc7] | committer: Geoffrey Métais

Continue playback when screencasting

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

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 6fb8ce67f..06c1f2e2e 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -656,7 +656,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
 
         mPlaybackStarted = true;
 
-        IVLCVout vlcVout = mService.getVout();
+        final IVLCVout vlcVout = mService.getVout();
         if (vlcVout != null && vlcVout.areViewsAttached()) {
             if (mService.isPlayingPopup()) {
                 mService.stop();
@@ -2615,7 +2615,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
             // Get the title
             if (itemTitle == null && !TextUtils.equals(mUri.getScheme(), "content"))
                 title = mUri.getLastPathSegment();
-        } else if (mService.hasMedia() && mService.hasRenderer()){
+        } else if (mService.hasMedia() && !mDisplayManager.isPrimary()){
             onPlaying();
         } else {
             mService.loadLastPlaylist(Constants.PLAYLIST_TYPE_VIDEO);



More information about the Android mailing list