[Android] Show audio player on audio casting

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


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

Show audio player on audio casting

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 403df8600..6a83d0f1c 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -502,7 +502,7 @@ public class PlaybackService extends MediaBrowserServiceCompat{
                             && playlistManager.switchToVideo()) {
                         hideNotification();
                     } else {
-                        if (!hasRenderer()) showPlayer();
+                        if (!hasRenderer() || !canSwitchToVideo()) showPlayer();
                         showNotification();
                     }
                     break;



More information about the Android mailing list