[Android] Fix video player start when playing as audio
Geoffrey Métais
git at videolan.org
Fri Feb 5 12:34:34 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Feb 5 12:33:22 2016 +0100| [87423fc6025e09ee93ba388b5866183c58be459d] | committer: Geoffrey Métais
Fix video player start when playing as audio
> https://code.videolan.org/videolan/vlc-android/commit/87423fc6025e09ee93ba388b5866183c58be459d
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index c2acbb9..107ceb3 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -858,8 +858,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
PendingIntent pendingIntent;
- if (canSwitchToVideo()) {
- /* Resume VideoPlayerActivity from from ACTION_REMOTE_SWITCH_VIDEO intent */
+ if (canSwitchToVideo() && !mMediaList.getMedia(mCurrentIndex).hasFlag(MediaWrapper.MEDIA_FORCE_AUDIO) ) {
+ /* Resume VideoPlayerActivity from ACTION_REMOTE_SWITCH_VIDEO intent */
final Intent notificationIntent = new Intent(ACTION_REMOTE_SWITCH_VIDEO);
pendingIntent = PendingIntent.getBroadcast(this, 0, notificationIntent, PendingIntent.FLAG_UPDATE_CURRENT);
} else {
More information about the Android
mailing list