|
Post by nlz242 on Feb 13, 2014 13:09:58 GMT -5
Hello!
First of all, i would like to thank you for this great piece of software. I use it daily and i love it. I purchased it a while ago and i dont regret it. "Album Artist" sorting is something i wanted for so long and your player is the only one where it works properly, imo!
I've been having issues with Auto-Pause and Auto-Resume in my car, for a while now.
Whenever Bluetooth connects, Auto-resume kicks in and music starts playing but it plays on the phone's speaker before switching to Bluetooth. Giving me a 2-3s of music from the phone's speaker. Whenever Bluetooth disconnects, music keeps playing (Auto-Pause doesn't kick in) and it switches to the phone's speaker. Then, i have to manually pause it.
It may not be GMMP, but i figured this was the best place to share/ask before i take this issue somewhere else.
I'm using 1.5b4.3 (always on latest betas). This is running on a Galaxy S3 (i747m) using CyanogenMod 11 (latest nightlies, always). I know bluetooth on CM11 doesn't have that good a reputation right now and it may be the culprit...
Thanks in advance!
-Cq
|
|
|
Post by GoneMAD on Feb 13, 2014 14:07:36 GMT -5
Hello! First of all, i would like to thank you for this great piece of software. I use it daily and i love it. I purchased it a while ago and i dont regret it. "Album Artist" sorting is something i wanted for so long and your player is the only one where it works properly, imo! I've been having issues with Auto-Pause and Auto-Resume in my car, for a while now. Whenever Bluetooth connects, Auto-resume kicks in and music starts playing but it plays on the phone's speaker before switching to Bluetooth. Giving me a 2-3s of music from the phone's speaker. Whenever Bluetooth disconnects, music keeps playing (Auto-Pause doesn't kick in) and it switches to the phone's speaker. Then, i have to manually pause it. It may not be GMMP, but i figured this was the best place to share/ask before i take this issue somewhere else. I'm using 1.5b4.3 (always on latest betas). This is running on a Galaxy S3 (i747m) using CyanogenMod 11 (latest nightlies, always). I know bluetooth on CM11 doesn't have that good a reputation right now and it may be the culprit... Thanks in advance! -Cq yea its an android bug but there is a delay you can set in gmmp to let it fully switch over to the bluetooth before resuming. Prefs -> general -> headset prefs -> bluetooth resume delay. Increase that a bit and then it shouldnt play out of the speakers as for pausing. be sure auto pause is checked for bluetooth.. otherwise its a bug with the phone. GMMP listens for the bluetooth disconnection message and then pauses.. so either tahts not being sent out by the android OS.. or its being received but then something else is sending a message saying to resume. Next time you disconnect watch now playing to see if the pause/play icon swithces at all when you disconnect
|
|
|
Post by nlz242 on Feb 13, 2014 14:15:54 GMT -5
yea its an android bug but there is a delay you can set in gmmp to let it fully switch over to the bluetooth before resuming. Prefs -> general -> headset prefs -> bluetooth resume delay. Increase that a bit and then it shouldnt play out of the speakers as for pausing. be sure auto pause is checked for bluetooth.. otherwise its a bug with the phone. GMMP listens for the bluetooth disconnection message and then pauses.. so either tahts not being sent out by the android OS.. or its being received but then something else is sending a message saying to resume. Next time you disconnect watch now playing to see if the pause/play icon swithces at all when you disconnect Ok, i've got my resume delay to 4. That should be good. For the second point, yes it is indeed checked. I'll pay attention next time and report back. Thanks! -Cq
|
|
|
Post by nlz242 on Feb 13, 2014 20:46:31 GMT -5
Okay, tried it earlier and it does pause, then resumes. I've captured a catlog during the bluetooth disconnect. Posted the whole thing here : pastebin.com/ctcWzpt5But i'm guessing headsetService is what you are interested in, so here's a filtered down version 02-13 17:15:52.549 I/BluetoothHeadsetServiceJni(7452): connection_state_callback 02-13 17:15:52.549 E/HeadsetStateMachine(7452): terminateScoUsingVirtualVoiceCall:No present call to terminate 02-13 17:15:52.559 V/HeadsetService(7452): HeadsetService - Received BluetoothA2dp Play State changed 02-13 17:15:52.569 D/LocalBluetoothProfileManager(8249): HEADSET state change 2 -> 0 02-13 17:15:52.589 I/HeadsetService(1322): Headset=false; Bluetooth=true ; USB=false 02-13 17:15:53.590 I/HeadsetService(1322): Headset=false; Bluetooth=false ; USB=false 02-13 17:15:53.590 I/HeadsetService(1322): Selected configuration: speaker 02-13 17:15:53.590 V/HeadsetService(7452): HeadsetService - Received BluetoothA2dp Conn State changed 02-13 17:15:53.590 D/BluetoothAdapterService(1110342824)( 7452): Message: 20 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): MESSAGE_PROFILE_CONNECTION_STATE_CHANGED 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@422e9738 02-13 17:15:53.600 D/BluetoothAdapterProperties(7452): CONNECTION_STATE_CHANGE: 90:03:B7:01:27:7C: 2 -> 0 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@422e9738 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): Get Bonded Devices being called 02-13 17:15:53.600 D/BluetoothAdapterProperties(7452): getBondedDevices: length=2 02-13 17:15:53.660 D/LocalBluetoothProfileManager(8249): A2DP state change 2 -> 0
|
|
|
Post by GoneMAD on Feb 13, 2014 21:08:42 GMT -5
Okay, tried it earlier and it does pause, then resumes. I've captured a catlog during the bluetooth disconnect. Posted the whole thing here : pastebin.com/ctcWzpt5But i'm guessing headsetService is what you are interested in, so here's a filtered down version 02-13 17:15:52.549 I/BluetoothHeadsetServiceJni(7452): connection_state_callback 02-13 17:15:52.549 E/HeadsetStateMachine(7452): terminateScoUsingVirtualVoiceCall:No present call to terminate 02-13 17:15:52.559 V/HeadsetService(7452): HeadsetService - Received BluetoothA2dp Play State changed 02-13 17:15:52.569 D/LocalBluetoothProfileManager(8249): HEADSET state change 2 -> 0 02-13 17:15:52.589 I/HeadsetService(1322): Headset=false; Bluetooth=true ; USB=false 02-13 17:15:53.590 I/HeadsetService(1322): Headset=false; Bluetooth=false ; USB=false 02-13 17:15:53.590 I/HeadsetService(1322): Selected configuration: speaker 02-13 17:15:53.590 V/HeadsetService(7452): HeadsetService - Received BluetoothA2dp Conn State changed 02-13 17:15:53.590 D/BluetoothAdapterService(1110342824)( 7452): Message: 20 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): MESSAGE_PROFILE_CONNECTION_STATE_CHANGED 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@422e9738 02-13 17:15:53.600 D/BluetoothAdapterProperties(7452): CONNECTION_STATE_CHANGE: 90:03:B7:01:27:7C: 2 -> 0 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): getState(): mAdapterProperties: com.android.bluetooth.btservice.AdapterProperties@422e9738 02-13 17:15:53.600 D/BluetoothAdapterService(1110342824)( 7452): Get Bonded Devices being called 02-13 17:15:53.600 D/BluetoothAdapterProperties(7452): getBondedDevices: length=2 02-13 17:15:53.660 D/LocalBluetoothProfileManager(8249): A2DP state change 2 -> 0 from the full log it looks like you have other apps stealing audio focus which is most likely interfering with GMMP from properly receiving the disconnect. If something steals audiofocus, GMMP will pause to obey the audiofocus request and if it detects the disconnect during the time.. nothing will happen because its paused. When whatever that newstand app is, returns focus to gmmp.. its is going to start playing again 02-13 17:15:53.540 I/MediaFocusControl(817): AudioFocus abandonAudioFocus() from android.media.AudioManager@424f0ff8com.google.apps.dots.android.newsstand.audio.AudioPlayerService$3@424f1b78
|
|
|
Post by nlz242 on Feb 14, 2014 0:14:21 GMT -5
from the full log it looks like you have other apps stealing audio focus which is most likely interfering with GMMP from properly receiving the disconnect. If something steals audiofocus, GMMP will pause to obey the audiofocus request and if it detects the disconnect during the time.. nothing will happen because its paused. When whatever that newstand app is, returns focus to gmmp.. its is going to start playing again 02-13 17:15:53.540 I/MediaFocusControl(817): AudioFocus abandonAudioFocus() from android.media.AudioManager@424f0ff8com.google.apps.dots.android.newsstand.audio.AudioPlayerService$3@424f1b78 I have disabled (froze in Titanium Backup) Google Play Kiosque (magazines) and Books. I tried connecting to reproduce the issue on my computer and it seems it works now (i stops playing when i disconnect bluetooth). I'll have to try in my car, but so far it looks promising. Thanks alot for your help! Much appreciated!
|
|
|
Post by GoneMAD on Feb 14, 2014 1:23:07 GMT -5
from the full log it looks like you have other apps stealing audio focus which is most likely interfering with GMMP from properly receiving the disconnect. If something steals audiofocus, GMMP will pause to obey the audiofocus request and if it detects the disconnect during the time.. nothing will happen because its paused. When whatever that newstand app is, returns focus to gmmp.. its is going to start playing again 02-13 17:15:53.540 I/MediaFocusControl(817): AudioFocus abandonAudioFocus() from android.media.AudioManager@424f0ff8com.google.apps.dots.android.newsstand.audio.AudioPlayerService$3@424f1b78 I have disabled (froze in Titanium Backup) Google Play Kiosque (magazines) and Books. I tried connecting to reproduce the issue on my computer and it seems it works now (i stops playing when i disconnect bluetooth). I'll have to try in my car, but so far it looks promising. Thanks alot for your help! Much appreciated! great!
|
|
|
Post by nlz242 on Feb 18, 2014 9:06:10 GMT -5
I have had some time to play with this again... with all the suspicious apps frozen. I still get music on the speaker on BT disconnect. No suspicious message from MediaFocus this time and sadly i didn't notice if it did the "Pause/Play" switchup... Have a catlog, tell me if you see anything in there :/ pastebin.com/nU71rPSC
|
|
|
Post by GoneMAD on Feb 18, 2014 10:33:37 GMT -5
I have had some time to play with this again... with all the suspicious apps frozen. I still get music on the speaker on BT disconnect. No suspicious message from MediaFocus this time and sadly i didn't notice if it did the "Pause/Play" switchup... Have a catlog, tell me if you see anything in there :/ pastebin.com/nU71rPSCsince you are using CM11, be sure GMMP is given audio focus permissions in app ops. If its not one of the available options you might have to reinstall GMMP for it to show up. I had dealt with something similar from another user via email and we determined app ops was blocking audio focus.
|
|
|
Post by nlz242 on Feb 18, 2014 11:29:49 GMT -5
Yes it is in there, allowed and has a number of times that it has been allowed (something like 83). I was thinking of re-installing everything... i guess i could try and do a clean install and see if the issue persists (before i install any other softwares)
|
|
|
Post by nlz242 on Feb 23, 2014 18:13:06 GMT -5
I wiped my device, reinstalled CM11 and used a minimal google-apps package (that doesnt include magazines, etc) and i am still getting the same behaviour. Once bluetooth disconnects, audio switches to speakers. No audiofocus request in my logcat. Any idea ? Here's my logcat : pastebin.com/Ng2K8btyEDIT : Interesting find, it doesn't pause then resume anymore... It just switches to speaker without suspending play....
|
|
|
Post by GoneMAD on Feb 23, 2014 20:01:07 GMT -5
try disabling audiofocus requests. prefs -> audio -> playback -> obey audiofocus requests
there are only a few things that can cause playback to start and it looks like the Bluetooth connect/disconnect message are being correctly sent
|
|
|
Post by nlz242 on Apr 12, 2014 0:07:39 GMT -5
Sorry for the delay. When i tried it, disabling audiofocus requests did solve the issue, however i lost track titles on my car stereo. HOWEVER, i don't know what happened lately but its fixed now, i have audiofocus on and whenever i disconnect the device from my car (turning the ignition off) it pauses and stay paused. I don't know if you fixed it or if CyanogenMod had a bug that they fixed, but the issue is gone Thanks for your support!
|
|