[Android] Disable video track on mediaplayer stop
Geoffrey Métais
git at videolan.org
Thu Sep 28 16:47:58 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 28 15:29:35 2017 +0200| [9b6be779a3bc7c90ab45625b3bff9637fab197ab] | committer: Geoffrey Métais
Disable video track on mediaplayer stop
> https://code.videolan.org/videolan/vlc-android/commit/9b6be779a3bc7c90ab45625b3bff9637fab197ab
---
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 14a01e2ca..57e6c9a8d 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -2497,6 +2497,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
public void restartMediaPlayer() {
mMediaPlayer.setEventListener(null);
+ mMediaPlayer.setVideoTrackEnabled(false);
if (isVideoPlaying())
mMediaPlayer.getVLCVout().detachViews();
final MediaPlayer mp = mMediaPlayer;
More information about the Android
mailing list