[Android] PlaybackService: ensure the video track is enabled when video player is running
Thomas Guillem
git at videolan.org
Fri Nov 27 17:07:28 CET 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Thu Nov 26 14:45:37 2015 +0100| [e1f19c074a06f3c10d7d47dd577be8aab64460e1] | committer: Geoffrey Métais
PlaybackService: ensure the video track is enabled when video player is running
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=e1f19c074a06f3c10d7d47dd577be8aab64460e1
---
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));
More information about the Android
mailing list