aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaneren2005 <daneren2005@gmail.com>2013-04-11 15:29:21 -0700
committerdaneren2005 <daneren2005@gmail.com>2013-04-11 15:29:21 -0700
commitea898871a61da79ca9d79c5a1846229fe6a4559b (patch)
treed06a4f5009eeb066388ca778e8beec95a34983c3
parentc6995ab8f18d000e2b31c35c7f72766a9f7f6941 (diff)
downloaddsub-ea898871a61da79ca9d79c5a1846229fe6a4559b.tar.gz
dsub-ea898871a61da79ca9d79c5a1846229fe6a4559b.tar.bz2
dsub-ea898871a61da79ca9d79c5a1846229fe6a4559b.zip
Chain media players with identical audio session ids
Possible fix for some phones getting confused about where to send audio and sending it to speakers instead of headphones.
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index f5ae6037..4585c52e 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -1053,7 +1053,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
}
nextMediaPlayer = new MediaPlayer();
nextMediaPlayer.setWakeMode(DownloadServiceImpl.this, PowerManager.PARTIAL_WAKE_LOCK);
- nextMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
+ nextMediaPlayer.setAudioSessionId(mediaPlayer.getAudioSessionId());
nextMediaPlayer.setDataSource(file.getPath());
setNextPlayerState(PREPARING);