[Android] Improve video remote restoration while casting

Geoffrey Métais git at videolan.org
Wed Feb 7 15:52:22 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Feb  7 15:51:05 2018 +0100| [6e7ee7f7132970c747b23d2cb10dad047f7983b9] | committer: Geoffrey Métais

Improve video remote restoration while casting

Close #493

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

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

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 c71688b05..da0a8f088 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3172,6 +3172,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             // Get the title
             if (itemTitle == null && !TextUtils.equals(mUri.getScheme(), "content"))
                 title = mUri.getLastPathSegment();
+        } else if (mService.hasMedia() && mService.hasRenderer()){
+            onPlaying();
         } else {
             mService.loadLastPlaylist(Constants.PLAYLIST_TYPE_VIDEO);
         }



More information about the Android mailing list