Jump to content

Android Auto music pause on start


Robert56
Go to solution Solved by Robert56,

Recommended Posts

Android auto starts plays couple of seconds a track then pauses until I toggle though the screens to hit the play button, anyone has any ideas to start and keep the music playing.

Yes i do have the resume playing on start up ticked. 

Link to comment
Share on other sites

Play and Play/Pause commands can be triggered in a number of ways. After the pause happens, take a look at PA Settings=>Headset/Bluetooth=>Last Processed Commands and see if the log throws any light on what caused playback to stop. You can cut'n'paste the results here.

Andre

Link to comment
Share on other sites

Thanks

 

==================

08:21:18.755 BTReceiver headset event

connection BT=true am mode=0 Audi MMI 5130

==================

08:21:18.756 BTReceiver RESUME

resume_on_bt delay=500

==================

08:21:19.385 PlayerService RESUME

from BTReceiver resumePlaying 

==================

08:21:21.449 PlayerService RESUME

resumePlaying 

==================

08:21:22.533 PSAudioFocusHelper AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK

duckPlaying

==================

08:21:23.853 PSAudioFocusHelper AUDIOFOCUS_GAIN

 

==================

08:21:23.885 PSAudioFocusHelper AUDIOFOCUS_LOSS

pausePlaying af_permanent

==================

08:21:24.204 PlayerService UNDUCK

afterFocus

==================

08:21:25.117 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON

KEYCODE_MEDIA_PAUSE ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=2248810 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2

==================

08:21:25.130 BTReceiver headset event

disconnection BT=true am mode=0 Audi MMI 5130 no_keep_notif_on_dscn=false

==================

08:21:26.509 PSMediaSessionHelper.Callback onPlay

com.google.android.projection.gearhead

==================

08:21:28.618 PlayerService onRoutingChanged

newDevice=speaker oldDevice=bt

==================

08:21:28.618 PlayerService reloadPipeline

 allowPlaying=false f

orceResume=false state after reload=2

Link to comment
Share on other sites

@maxmp would be able to confirm more, but it looks to me as though your headunit is sending a MEDIA_PAUSE keycode button event via Bluetooth:

08:21:25.117 PSMediaButtonReceiver android.intent.action.MEDIA_BUTTON
KEYCODE_MEDIA_PAUSE ACTION_DOWN name=Virtual source=0x0 sources=0x301 virt=true repeat=0 actionTime=2248810 sourcePak=com.android.bluetooth isAvrcp flags=0x0 playerState=2

Usually an ACTION_DOWN (button press) event should be followed by an accompanying BUTTON_UP event though, to say the button has been released again.

There is also a Bluetooth disconnection event just afterwards, which seems strange. 

Andre

Link to comment
Share on other sites

You could also play around with how your playback auto-start is triggered (by Android Auto setting or by Poweramp setting) in case that makes a difference.

But if your device is indeed sending a PAUSE command, Poweramp is doing exactly as it should.

Andre

Link to comment
Share on other sites

  • 2 weeks later...
  • Solution

Sorted, button on steering wheel seems to determine to start or pause on starting of android auto even though everything else starts and disregards button, so solution is start android auto - play music via toggling android auto to Poweramp - pause music with steering wheel button - on restart it now plays on start.

Did it again with a second press of the pause and again it failed to play on start!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...