[Android] [PATCH 05/10] PlaybackService: ensure the video track is enabled when video player is running

Geoffrey Métais geoffrey.metais at gmail.com
Fri Nov 27 13:25:00 CET 2015


From: Thomas Guillem <thomas at gllm.fr>

---
 vlc-android/src/org/videolan/vlc/PlaybackService.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index bfd0a18..c857b70 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -728,6 +728,7 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
         if (!canSwitchToVideo())
             return false;
         if (isVideoPlaying()) {//Player is already running, just send it an intent
+            mMediaPlayer.setVideoTrackEnabled(true);
             LocalBroadcastManager.getInstance(this).sendBroadcast(
                     VideoPlayerActivity.getIntent(VideoPlayerActivity.PLAY_FROM_SERVICE,
                             getCurrentMediaWrapper(), false, mCurrentIndex));
-- 
2.5.0



More information about the Android mailing list