[Android] Revert "Stop playback on permanent audio focus loss"
Geoffrey Métais
git at videolan.org
Sat Nov 12 10:35:08 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Sat Nov 12 10:35:51 2016 +0100| [72bd95595192ddc20281c7280d1520c6aa4763aa] | committer: Geoffrey Métais
Revert "Stop playback on permanent audio focus loss"
This reverts commit 67290fadd7a467ff0f119c7e2f115a9b1a3acf07.
> https://code.videolan.org/videolan/vlc-android/commit/72bd95595192ddc20281c7280d1520c6aa4763aa
---
vlc-android/src/org/videolan/vlc/PlaybackService.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 472220d..e79f048 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -350,8 +350,9 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
switch (focusChange) {
case AudioManager.AUDIOFOCUS_LOSS:
Log.i(TAG, "AUDIOFOCUS_LOSS");
- // Stop playback
- stopPlayback();
+ // Pause playback
+ changeAudioFocus(false);
+ pause();
break;
case AudioManager.AUDIOFOCUS_LOSS_TRANSIENT:
Log.i(TAG, "AUDIOFOCUS_LOSS_TRANSIENT");
More information about the Android
mailing list